altos/lpc: Get USB working
[fw/altos] / src / lpc / ao_arch_funcs.h
index 39222b9dab69f42a5f0ed0f3bf26177b54f2a72d..96ae0366f85bee03eb9caa0a5bf8718ade483975 100644 (file)
@@ -124,7 +124,7 @@ static inline void ao_arch_restore_stack(void) {
 
        /* Restore APSR */
        asm("pop {r0}");
-       asm("msr apsr,r0");
+       asm("msr apsr_nczvq,r0");
 
        /* Restore general registers and return */
        asm("pop {r0-r7,pc}\n");