1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994, 1995, 1996, 1999, 2000 by Ralf Baechle 7 * Copyright (C) 1999, 2000 by Silicon Graphics 8 * Copyright (C) 2002 Maciej W. Rozycki 9 */ 10#include <linux/init.h> 11#include <linux/kernel.h> 12#include <asm/traps.h> 13#include <asm/uaccess.h> 14#include <asm/addrspace.h> 15#include <asm/ptrace.h> 16#include <asm/tlbdebug.h> 17 18int be_ip32_handler(struct pt_regs *regs, int is_fixup) 19{ 20 int data = regs->cp0_cause & 4; 21 22 if (is_fixup) 23 return MIPS_BE_FIXUP; 24 25 printk("Got %cbe at 0x%lx\n", data ? 'd' : 'i', regs->cp0_epc); 26 show_regs(regs); 27 dump_tlb_all(); 28 while(1); 29 force_sig(SIGBUS, current); 30} 31 32void __init bus_error_init(void) 33{ 34 be_board_handler = be_ip32_handler; 35} 36