1/* 2 * include/asm-mips/traps.h 3 * 4 * Trap handling definitions. 5 * 6 * Copyright (C) 2002 Maciej W. Rozycki 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 11 * 2 of the License, or (at your option) any later version. 12 */ 13#ifndef __ASM_MIPS_TRAPS_H 14#define __ASM_MIPS_TRAPS_H 15 16/* 17 * Possible status responses for a be_board_handler backend. 18 */ 19#define MIPS_BE_DISCARD 0 /* return with no action */ 20#define MIPS_BE_FIXUP 1 /* return to the fixup code */ 21#define MIPS_BE_FATAL 2 /* treat as an unrecoverable error */ 22 23extern int (*be_board_handler)(struct pt_regs *regs, int is_fixup); 24 25extern void bus_error_init(void); 26 27#endif /* __ASM_MIPS_TRAPS_H */ 28