Fixed the errors.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10854 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-09-02 08:14:52 +00:00
parent 3686228f9d
commit 8aa6180e92
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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);