summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-04-30 08:46:52 -0700
committerKeith Packard <keithp@keithp.com>2016-04-30 08:51:53 -0700
commit7695da327ff8861a858b6695f4849fa1399548d8 (patch)
tree8d16bfcd7dcd0d1ac265b6752aff0363c98fee56
parent7db1cba64a2f6c80c5fe6e3073a0ff65be9c04c1 (diff)
Revert "altos/stm: Run scheduler code on interrupt stack"
This reverts commit 6a9546413d6a236c010e806b50506d870961d074. This causes the device to stop reliably handling interrupts.
-rw-r--r--src/stm/ao_arch_funcs.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h
index 5a7782de..2c017c79 100644
--- a/src/stm/ao_arch_funcs.h
+++ b/src/stm/ao_arch_funcs.h
@@ -391,13 +391,6 @@ static inline void ao_arch_save_stack(void) {
static inline void ao_arch_restore_stack(void) {
uint32_t sp;
- uint32_t control;
-
- asm("mrs %0,control" : "=&r" (control));
- control |= (1 << 1);
- asm("msr control,%0" : : "r" (control));
- asm("isb");
-
sp = (uint32_t) ao_cur_task->sp;
/* Switch stacks */
@@ -454,14 +447,7 @@ static inline void ao_arch_start_scheduler(void) {
}
#endif
-static inline void ao_arch_isr_stack(void) {
- uint32_t control;
-
- asm("mrs %0,control" : "=&r" (control));
- control &= ~(1 << 1);
- asm("msr control,%0" : : "r" (control));
- asm("isb");
-}
+#define ao_arch_isr_stack()
#endif