summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
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