From 38d7a68d9edf1e8ea6e7ed72b41705a2a5882435 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 30 Apr 2013 19:04:26 -0700 Subject: 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 --- src/core/ao_task.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/ao_task.c') 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(); } -- cgit v1.2.3