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-04-30 19:04:26 -0700
commit38d7a68d9edf1e8ea6e7ed72b41705a2a5882435 (patch)
treefc460bc23991f4275de7a3f8a7b723dcb31fdbe1 /src/core/ao_task.c
parent9fad3457a4977158697eeca8b6ea7516cc59a6c8 (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 e1d35d67..0aad6508 100644
--- a/src/core/ao_task.c
+++ b/src/core/ao_task.c
@@ -538,5 +538,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();
}