summaryrefslogtreecommitdiff
path: root/src/core/ao_task.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-30 19:04:26 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:08:00 -0700
commit1e9b405e939136d25d937334d1f14f06c7d6127b (patch)
tree41231eaa27550b5a5f0fd43022c5a4ef3c37cb15 /src/core/ao_task.c
parentac72d1c298fc553808a8e04a65482d4990f177d7 (diff)
altos: Use separate exception stack on STM32L
This reserves 512 bytes of memory for a stack, then makes sure that exceptions continue to use that stack while processes use the per-task stack. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_task.c')
-rw-r--r--src/core/ao_task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ao_task.c b/src/core/ao_task.c
index 9cb074b5..c24c9929 100644
--- a/src/core/ao_task.c
+++ b/src/core/ao_task.c
@@ -536,5 +536,8 @@ ao_start_scheduler(void)
ao_cur_task_index = AO_NO_TASK_INDEX;
#endif
ao_cur_task = NULL;
+#if HAS_ARCH_START_SCHEDULER
+ ao_arch_start_scheduler();
+#endif
ao_yield();
}