summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/cortex-m0/irq_handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cortex-m0/irq_handler.h b/core/cortex-m0/irq_handler.h
index 4383f3c7ca..77816949d0 100644
--- a/core/cortex-m0/irq_handler.h
+++ b/core/cortex-m0/irq_handler.h
@@ -55,7 +55,8 @@ extern int need_resched_or_profiling;
"cpsid i\n isb\n" \
/* re-schedule the highest priority task */ \
"bl svc_handler\n" \
- /* return from exception */ \
+ /* enable interrupts and return from exception */ \
+ "cpsie i\n" \
"pop {r0,pc}\n" \
: : "r"(&need_resched_or_profiling)); \
} \