X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_arch_funcs.h;h=b461cd3fbf81dd9f32dac82894ea96d7c5bdaad7;hb=54f7888dc65ffc27c6ee5ef93953bd9b8fc029ed;hp=4bcc102324a5cb63fe49d518e684d4ffc072dcd6;hpb=8f7edcee2db30652ce0b147f282de3396c3786ad;p=fw%2Faltos diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index 4bcc1023..b461cd3f 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -329,7 +329,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 */ asm("pop {r0-r12,lr}\n");