diff options
-rw-r--r-- | os/ports/GCC/ARMCMx/chcore_v6m.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/ports/GCC/ARMCMx/chcore_v6m.c b/os/ports/GCC/ARMCMx/chcore_v6m.c index 8f8a0a100..8c367daf8 100644 --- a/os/ports/GCC/ARMCMx/chcore_v6m.c +++ b/os/ports/GCC/ARMCMx/chcore_v6m.c @@ -84,6 +84,7 @@ void _port_switch_from_irq(void) { "mov r12, r1 \n\t" \
"msr APSR, r0 \n\t" \
"mov lr, r2 \n\t" \
+ "cpsie i \n\t" \
"pop {r0, r1, r2, r3, pc}");
}
|