diff --git a/sys/arch/arc/arc/arc_trap.c b/sys/arch/arc/arc/arc_trap.c index 212a22a8fddf..e4984f097ddd 100644 --- a/sys/arch/arc/arc/arc_trap.c +++ b/sys/arch/arc/arc/arc_trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: arc_trap.c,v 1.10 2000/03/03 12:50:19 soda Exp $ */ +/* $NetBSD: arc_trap.c,v 1.11 2000/03/04 05:21:20 nisimura Exp $ */ /* $OpenBSD: trap.c,v 1.22 1999/05/24 23:08:59 jason Exp $ */ /* @@ -45,37 +45,16 @@ #include #include -#include -#include #include -#include -#include -#include -#include -#ifdef KTRACE -#include -#endif -#include -#include -#include -#include - -#include -#include -#include -#include -#include #include -#include +#include +#include #include #include #include -#include -#include - #define MIPS_INT_LEVELS 8 struct { @@ -162,38 +141,3 @@ set_intr(mask, int_hand, prio) break; } } - -#if 0 -/* - *---------------------------------------------------------------------- - * - * MemErrorInterrupts -- - * arc_errintr - for the ACER PICA_61 - * - * Handler an interrupt for the control register. - * - * Results: - * None. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ -static void -arc_errintr() -{ - volatile u_short *sysCSRPtr = - (u_short *)MIPS_PHYS_TO_KSEG1(KN01_SYS_CSR); - u_short csr; - - csr = *sysCSRPtr; - - if (csr & KN01_CSR_MERR) { - printf("Memory error at 0x%x\n", - *(unsigned *)MIPS_PHYS_TO_KSEG1(KN01_SYS_ERRADR)); - panic("Mem error interrupt"); - } - *sysCSRPtr = (csr & ~KN01_CSR_MBZ) | 0xff; -} -#endif