1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2003 Richard Curnow, SuperH UK Limited
6 #include <linux/kernel.h>
8 #include <cpu/registers.h>
10 /* THIS IS A PHYSICAL ADDRESS */
11 #define HDSP2534_ADDR (0x04002100)
13 static void poor_mans_delay(void)
17 for (i = 0; i < 2500000; i++)
21 static void show_value(unsigned long x)
25 for (i = 0; i < 8; i++) {
26 nibble = ((x >> (i * 4)) & 0xf);
28 __raw_writeb(nibble + ((nibble > 9) ? 55 : 48),
29 HDSP2534_ADDR + 0xe0 + ((7 - i) << 2));
34 panic_handler(unsigned long panicPC, unsigned long panicSSR,
35 unsigned long panicEXPEVT)
38 /* This piece of code displays the PC on the LED display */
43 show_value(panicEXPEVT);