From 2f70f13a42404c2288a149dfd77162a30c919c14 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 1 Aug 2002 08:14:56 +0000 Subject: Moved switch_thread() and the thread context data to internal RAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1500 a1c6a512-1295-4272-9138-f99709370657 --- firmware/thread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware') 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 int num_threads; static int current_thread; -static struct regs thread_contexts[MAXTHREADS]; +static struct regs thread_contexts[MAXTHREADS] __attribute__ ((section(".idata"))); char *thread_name[MAXTHREADS]; void *thread_stack[MAXTHREADS]; int thread_stack_size[MAXTHREADS]; @@ -40,6 +40,8 @@ static char main_thread_name[] = "main"; extern int stackbegin[]; extern int stackend[]; +void switch_thread(void) __attribute__ ((section(".icode"))); + /*--------------------------------------------------------------------------- * Store non-volatile context. *--------------------------------------------------------------------------- -- cgit v1.2.3