diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:33:42 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:33:42 +0000 |
commit | 610190a04e52944bb2818882af937ce175f45992 (patch) | |
tree | de409ea9508c1e8b47f59d622e9562bb4afe614b | |
parent | a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f (diff) |
Fixed the errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10959 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/debug_menu.c | 6 | ||||
-rw-r--r-- | firmware/drivers/lcd-16bit.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index bda5a5c4f0..056866633a 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -186,7 +186,7 @@ bool dbg_os(void) lcd_puts(0, 0, "Stack usage"); /* Only Archos Player uses this - so assume a single core */ - usage = thread_stack_usage(currval); + usage = thread_stack_usage(&cores[CPU].threads[currval]); snprintf(buf, 32, "%d: %d%% ", currval, usage); lcd_puts(0, 1, buf); @@ -201,12 +201,12 @@ bool dbg_os(void) case ACTION_SETTINGS_DEC: currval--; if(currval < 0) - currval = cores[CPU].num_threads-1; + currval = MAXTHREADS-1; break; case ACTION_SETTINGS_INC: currval++; - if(currval > cores[CPU].num_threads-1) + if(currval > MAXTHREADS-1) currval = 0; break; } diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c index 47c02ea7b7..060957a5ed 100644 --- a/firmware/drivers/lcd-16bit.c +++ b/firmware/drivers/lcd-16bit.c @@ -79,7 +79,8 @@ void lcd_init(void) /* Call device specific init */ lcd_init_device(); create_thread(scroll_thread, scroll_stack, - sizeof(scroll_stack), scroll_name, PRIORITY_SYSTEM); + sizeof(scroll_stack), scroll_name + IF_PRIO(, PRIORITY_SYSTEM)); } /*** parameter handling ***/ |