summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index a46351cb1f..2651a4f2d7 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -31,7 +31,7 @@ struct regs
31 31
32int num_threads; 32int num_threads;
33static int current_thread; 33static int current_thread;
34static struct regs thread_contexts[MAXTHREADS]; 34static struct regs thread_contexts[MAXTHREADS] __attribute__ ((section(".idata")));
35char *thread_name[MAXTHREADS]; 35char *thread_name[MAXTHREADS];
36void *thread_stack[MAXTHREADS]; 36void *thread_stack[MAXTHREADS];
37int thread_stack_size[MAXTHREADS]; 37int thread_stack_size[MAXTHREADS];
@@ -40,6 +40,8 @@ static char main_thread_name[] = "main";
40extern int stackbegin[]; 40extern int stackbegin[];
41extern int stackend[]; 41extern int stackend[];
42 42
43void switch_thread(void) __attribute__ ((section(".icode")));
44
43/*--------------------------------------------------------------------------- 45/*---------------------------------------------------------------------------
44 * Store non-volatile context. 46 * Store non-volatile context.
45 *--------------------------------------------------------------------------- 47 *---------------------------------------------------------------------------