Revert "altos/stm: Run scheduler code on interrupt stack"
authorKeith Packard <keithp@keithp.com>
Sat, 30 Apr 2016 15:46:52 +0000 (08:46 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 30 Apr 2016 15:51:53 +0000 (08:51 -0700)
This reverts commit 6a9546413d6a236c010e806b50506d870961d074.

This causes the device to stop reliably handling interrupts.

src/stm/ao_arch_funcs.h

index 5a7782dea8913779c8aa01cb37eb93cdec8387bc..2c017c79f0191b5b5395f66f508a26748cb048db 100644 (file)
@@ -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