forked from len0rd/rockbox
Fixed the errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10854 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3686228f9d
commit
8aa6180e92
2 changed files with 4 additions and 2 deletions
|
|
@ -157,12 +157,12 @@ bool dbg_os(void)
|
||||||
case ACTION_SETTINGS_DEC:
|
case ACTION_SETTINGS_DEC:
|
||||||
currval--;
|
currval--;
|
||||||
if(currval < 0)
|
if(currval < 0)
|
||||||
currval = num_threads[CPU]-1;
|
currval = cores[CPU].num_threads-1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACTION_SETTINGS_INC:
|
case ACTION_SETTINGS_INC:
|
||||||
currval++;
|
currval++;
|
||||||
if(currval > num_threads[CPU]-1)
|
if(currval > cores[CPU].num_threads-1)
|
||||||
currval = 0;
|
currval = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
#define DEFAULT_STACK_SIZE 0x400 /* Bytes */
|
#define DEFAULT_STACK_SIZE 0x400 /* Bytes */
|
||||||
|
|
||||||
|
#ifndef SIMULATOR
|
||||||
/* Need to keep structures inside the header file because debug_menu
|
/* Need to keep structures inside the header file because debug_menu
|
||||||
* needs them. */
|
* needs them. */
|
||||||
#ifdef CPU_COLDFIRE
|
#ifdef CPU_COLDFIRE
|
||||||
|
|
@ -78,6 +79,7 @@ struct core_entry {
|
||||||
int current_thread;
|
int current_thread;
|
||||||
struct thread_entry threads[MAXTHREADS];
|
struct thread_entry threads[MAXTHREADS];
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
int create_thread(void (*function)(void), void* stack, int stack_size,
|
int create_thread(void (*function)(void), void* stack, int stack_size,
|
||||||
const char *name);
|
const char *name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue