diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-08-01 08:14:56 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-08-01 08:14:56 +0000 |
commit | 2f70f13a42404c2288a149dfd77162a30c919c14 (patch) | |
tree | 8efa4adcf7dca173ddd312ea569db4c020e5dc50 /firmware | |
parent | 1f4613df6cabc862d957631ed99706b03c8350f2 (diff) | |
download | rockbox-2f70f13a42404c2288a149dfd77162a30c919c14.tar.gz rockbox-2f70f13a42404c2288a149dfd77162a30c919c14.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/thread.c | 4 |
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 | ||
32 | int num_threads; | 32 | int num_threads; |
33 | static int current_thread; | 33 | static int current_thread; |
34 | static struct regs thread_contexts[MAXTHREADS]; | 34 | static struct regs thread_contexts[MAXTHREADS] __attribute__ ((section(".idata"))); |
35 | char *thread_name[MAXTHREADS]; | 35 | char *thread_name[MAXTHREADS]; |
36 | void *thread_stack[MAXTHREADS]; | 36 | void *thread_stack[MAXTHREADS]; |
37 | int thread_stack_size[MAXTHREADS]; | 37 | int thread_stack_size[MAXTHREADS]; |
@@ -40,6 +40,8 @@ static char main_thread_name[] = "main"; | |||
40 | extern int stackbegin[]; | 40 | extern int stackbegin[]; |
41 | extern int stackend[]; | 41 | extern int stackend[]; |
42 | 42 | ||
43 | void switch_thread(void) __attribute__ ((section(".icode"))); | ||
44 | |||
43 | /*--------------------------------------------------------------------------- | 45 | /*--------------------------------------------------------------------------- |
44 | * Store non-volatile context. | 46 | * Store non-volatile context. |
45 | *--------------------------------------------------------------------------- | 47 | *--------------------------------------------------------------------------- |