#include "util.h"
uint16_t vblperf_color[] = {
- /* grn cyan yellow orng red purple ... */
- /* 60 30 20 15 12 10 ... */
- 0x3e0, 0xffc0, 0x3ff, 0x1ff, 0x001f, 0xf81f, 0xf81f, 0xf81f, 0xf81f, 0xf81f
+ /* grn blue cyan yellow orng red purple d.green purple ... */
+ /* 60 30 20 15 12 10 8.5 7.5 ... */
+ 0x3e0, 0xf863, 0xffc0, 0x3ff, 0x1ff, 0x001f, 0xf81f, 0x1e0, 0xf81f, 0xf81f, 0xf81f
};
static void vblperf_intr(void)
uint32_t panic_regs[16];
void get_panic_regs(void);
-void panic(uint32_t pc, const char *fmt, ...)
+void panic(void *pc, const char *fmt, ...)
{
int y;
va_list ap;
fillblock_16byte((void*)VRAM_LFB_FB0_ADDR, 0, 240 * 160 / 16);
fillblock_16byte((unsigned char*)VRAM_LFB_FB0_ADDR + 240 * 3, 0xffffffff, 240 / 16);
- dbg_drawstr(44, 0, " Panic at %08x ", pc);
+ dbg_drawstr(44, 0, " Panic at %p ", pc);
va_start(ap, fmt);
y = dbg_vdrawstr(0, 12, fmt, ap) + 8;