From 8aa6180e92d32350cc129122061764b95555b4a7 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 2 Sep 2006 08:14:52 +0000 Subject: Fixed the errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10854 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 4 ++-- 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) case ACTION_SETTINGS_DEC: currval--; if(currval < 0) - currval = num_threads[CPU]-1; + currval = cores[CPU].num_threads-1; break; case ACTION_SETTINGS_INC: currval++; - if(currval > num_threads[CPU]-1) + if(currval > cores[CPU].num_threads-1) currval = 0; break; } 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 @@ #define DEFAULT_STACK_SIZE 0x400 /* Bytes */ +#ifndef SIMULATOR /* Need to keep structures inside the header file because debug_menu * needs them. */ #ifdef CPU_COLDFIRE @@ -78,6 +79,7 @@ struct core_entry { int current_thread; struct thread_entry threads[MAXTHREADS]; }; +#endif int create_thread(void (*function)(void), void* stack, int stack_size, const char *name); -- cgit v1.2.3