2 * Copyright (C) 2003 Richard Curnow, SuperH UK Limited
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
9 #include <linux/kernel.h>
11 #include <asm/registers.h>
13 /* THIS IS A PHYSICAL ADDRESS */
14 #define HDSP2534_ADDR (0x04002100)
16 #ifdef CONFIG_SH_CAYMAN
18 static void poor_mans_delay(void)
21 for (i = 0; i < 2500000; i++) {
22 } /* poor man's delay */
25 static void show_value(unsigned long x)
29 for (i = 0; i < 8; i++) {
30 nibble = ((x >> (i * 4)) & 0xf);
32 ctrl_outb(nibble + ((nibble > 9) ? 55 : 48),
33 HDSP2534_ADDR + 0xe0 + ((7 - i) << 2));
40 panic_handler(unsigned long panicPC, unsigned long panicSSR,
41 unsigned long panicEXPEVT)
43 #ifdef CONFIG_SH_CAYMAN
45 /* This piece of code displays the PC on the LED display */
50 show_value(panicEXPEVT);
55 /* Never return from the panic handler */