summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-28 10:20:02 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-28 10:20:02 +0000
commit7914e90738ff37e6378b37632eb1f05bab7354d5 (patch)
tree6b3d6a6bac4c7a3f82fa212d5f3ed324d81dc8bb /firmware/system.c
parentedbf5d81f5a635a0db68039554b086f942b3e005 (diff)
downloadrockbox-7914e90738ff37e6378b37632eb1f05bab7354d5.tar.gz
rockbox-7914e90738ff37e6378b37632eb1f05bab7354d5.zip
Commit a subset of the dual core changes that have to do with cache handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 3fcf37d297..6ff0dbb5d1 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -179,6 +179,7 @@ static const char* const uiename[] = {
179/* Unexpected Interrupt or Exception handler. Currently only deals with 179/* Unexpected Interrupt or Exception handler. Currently only deals with
180 exceptions, but will deal with interrupts later. 180 exceptions, but will deal with interrupts later.
181 */ 181 */
182void UIE(unsigned int pc, unsigned int num) __attribute__((noreturn));
182void UIE(unsigned int pc, unsigned int num) 183void UIE(unsigned int pc, unsigned int num)
183{ 184{
184 char str[32]; 185 char str[32];
@@ -188,7 +189,8 @@ void UIE(unsigned int pc, unsigned int num)
188 lcd_setfont(FONT_SYSFIXED); 189 lcd_setfont(FONT_SYSFIXED);
189#endif 190#endif
190 lcd_puts(0, 0, uiename[num]); 191 lcd_puts(0, 0, uiename[num]);
191 snprintf(str, sizeof(str), "at %08x", pc); 192 snprintf(str, sizeof(str), "at %08x" IF_COP(" (%d)"), pc
193 IF_COP(, CURRENT_CORE));
192 lcd_puts(0, 1, str); 194 lcd_puts(0, 1, str);
193 lcd_update(); 195 lcd_update();
194 196