Go to the documentation of this file.
8 #include <linux/kernel.h>
9 #include <linux/sched.h>
11 #include <asm/addrspace.h>
12 #include <asm/traps.h>
14 #include <asm/irq_regs.h>
21 static unsigned int cpu_err_stat;
22 static unsigned int gio_err_stat;
23 static unsigned int cpu_err_addr;
24 static unsigned int gio_err_addr;
25 static unsigned int extio_stat;
26 static unsigned int hpc3_berr_stat;
28 static void save_and_clear_buserr(
void)
31 cpu_err_addr =
sgimc->cerr;
32 cpu_err_stat =
sgimc->cstat;
33 gio_err_addr =
sgimc->gerr;
34 gio_err_stat =
sgimc->gstat;
36 hpc3_berr_stat =
hpc3c0->bestat;
41 #define GIO_ERRMASK 0xff00
42 #define CPU_ERRMASK 0x3f00
44 static void print_buserr(
void)
90 const int field = 2 *
sizeof(
unsigned long);
93 save_and_clear_buserr();
96 (regs->
cp0_cause & 4) ?
"Data" :
"Instruction",
103 static int ip22_be_handler(
struct pt_regs *
regs,
int is_fixup)
105 save_and_clear_buserr();