diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-02 08:14:52 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-02 08:14:52 +0000 |
commit | 8aa6180e92d32350cc129122061764b95555b4a7 (patch) | |
tree | 1a1f44e91acdd82ac11c3659dabf081d6d78bf7c | |
parent | 3686228f9d620b108ca272767a3b2fe4db5ec289 (diff) | |
download | rockbox-8aa6180e92d32350cc129122061764b95555b4a7.tar.gz rockbox-8aa6180e92d32350cc129122061764b95555b4a7.zip |
Fixed the errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10854 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/debug_menu.c | 4 | ||||
-rw-r--r-- | firmware/export/thread.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index cfa15c2998..60f405ae50 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -157,12 +157,12 @@ bool dbg_os(void) | |||
157 | case ACTION_SETTINGS_DEC: | 157 | case ACTION_SETTINGS_DEC: |
158 | currval--; | 158 | currval--; |
159 | if(currval < 0) | 159 | if(currval < 0) |
160 | currval = num_threads[CPU]-1; | 160 | currval = cores[CPU].num_threads-1; |
161 | break; | 161 | break; |
162 | 162 | ||
163 | case ACTION_SETTINGS_INC: | 163 | case ACTION_SETTINGS_INC: |
164 | currval++; | 164 | currval++; |
165 | if(currval > num_threads[CPU]-1) | 165 | if(currval > cores[CPU].num_threads-1) |
166 | currval = 0; | 166 | currval = 0; |
167 | break; | 167 | break; |
168 | } | 168 | } |
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 16408e816e..e102997dae 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ | 30 | #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ |
31 | 31 | ||
32 | #ifndef SIMULATOR | ||
32 | /* Need to keep structures inside the header file because debug_menu | 33 | /* Need to keep structures inside the header file because debug_menu |
33 | * needs them. */ | 34 | * needs them. */ |
34 | #ifdef CPU_COLDFIRE | 35 | #ifdef CPU_COLDFIRE |
@@ -78,6 +79,7 @@ struct core_entry { | |||
78 | int current_thread; | 79 | int current_thread; |
79 | struct thread_entry threads[MAXTHREADS]; | 80 | struct thread_entry threads[MAXTHREADS]; |
80 | }; | 81 | }; |
82 | #endif | ||
81 | 83 | ||
82 | int create_thread(void (*function)(void), void* stack, int stack_size, | 84 | int create_thread(void (*function)(void), void* stack, int stack_size, |
83 | const char *name); | 85 | const char *name); |