Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
diff --git a/firmware/panic.c b/firmware/panic.c index 0e575e0..9230337 100644 void panicf( const char *fmt, ...) #if LCD_DEPTH > 1 lcd_set_backdrop(NULL); + lcd_set_drawmode(DRMODE_SOLID); lcd_set_foreground(LCD_BLACK); lcd_set_background(LCD_WHITE); #endif diff --git a/firmware/target/arm/system-arm.c b/firmware/target/arm/system-arm.c index 920dbac..22e7029 100644 static const char* const uiename[] = { */ void __attribute__((noreturn)) UIE(unsigned int pc, unsigned int num) { - lcd_clear_display(); #ifdef HAVE_LCD_BITMAP +#if LCD_DEPTH > 1 + lcd_set_backdrop(NULL); + lcd_set_drawmode(DRMODE_SOLID); + lcd_set_foreground(LCD_BLACK); + lcd_set_background(LCD_WHITE); +#endif lcd_setfont(FONT_SYSFIXED); + lcd_set_viewport(NULL); #endif + lcd_clear_display(); lcd_puts(0, 0, uiename[num]); lcd_putsf(0, 1, "at %08x" IF_COP(" (%d)"), pc IF_COP(, CURRENT_CORE)); diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c index 8ae702f..edee27b 100644 static void system_display_exception_info(unsigned long format, int vector = (format >> 18) & 0xff; /* clear screen */ - lcd_clear_display (); +#ifdef HAVE_LCD_BITMAP +#if LCD_DEPTH > 1 + lcd_set_backdrop(NULL); + lcd_set_drawmode(DRMODE_SOLID); + lcd_set_foreground(LCD_BLACK); + lcd_set_background(LCD_WHITE); +#endif lcd_setfont(FONT_SYSFIXED); + lcd_set_viewport(NULL); +#endif + lcd_clear_display(); lcd_putsf(0, 0, "I%02x:%s", vector, irqname[vector]); lcd_putsf(0, 1, "at %08x", pc); diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c index c5f99ab..68d4759 100644 void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) "$1", "LO", "HI", "STATUS", "EPC" }; int i; +#ifdef HAVE_LCD_BITMAP +#if LCD_DEPTH > 1 lcd_set_backdrop(NULL); - lcd_clear_display(); + lcd_set_drawmode(DRMODE_SOLID); + lcd_set_foreground(LCD_BLACK); + lcd_set_background(LCD_WHITE); +#endif lcd_setfont(FONT_SYSFIXED); + lcd_set_viewport(NULL); +#endif + lcd_clear_display(); _backlight_on(); snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc); diff --git a/firmware/target/sh/system-sh.c b/firmware/target/sh/system-sh.c index 2482109..e054801 100644 void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ asm volatile ("sts\tpr,%0" : "=r"(n)); /* clear screen */ - lcd_clear_display(); #ifdef HAVE_LCD_BITMAP +#if LCD_DEPTH > 1 + lcd_set_backdrop(NULL); + lcd_set_drawmode(DRMODE_SOLID); + lcd_set_foreground(LCD_BLACK); + lcd_set_background(LCD_WHITE); +#endif lcd_setfont(FONT_SYSFIXED); + lcd_set_viewport(NULL); #endif + + lcd_clear_display(); /* output exception */ n = (n - (unsigned)UIE4 + 12)>>2; /* get exception or interrupt number */ lcd_putsf(0, 0, "I%02x:%s", n, irqname[n]); |