1 /* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department and Ralph Campbell. 9 * 10 * %sccs.include.redist.c% 11 * 12 * from: Utah $Hdr: trap.h 1.1 90/07/09$ 13 * 14 * @(#)trap.h 8.1 (Berkeley) 06/10/93 15 */ 16 17 /* 18 * Trap codes 19 * also known in trap.c for name strings 20 */ 21 22 #define T_INT 0 /* Interrupt pending */ 23 #define T_TLB_MOD 1 /* TLB modified fault */ 24 #define T_TLB_LD_MISS 2 /* TLB miss on load or ifetch */ 25 #define T_TLB_ST_MISS 3 /* TLB miss on a store */ 26 #define T_ADDR_ERR_LD 4 /* Address error on a load or ifetch */ 27 #define T_ADDR_ERR_ST 5 /* Address error on a store */ 28 #define T_BUS_ERR_IFETCH 6 /* Bus error on an ifetch */ 29 #define T_BUS_ERR_LD_ST 7 /* Bus error on a load or store */ 30 #define T_SYSCALL 8 /* System call */ 31 #define T_BREAK 9 /* Breakpoint */ 32 #define T_RES_INST 10 /* Reserved instruction exception */ 33 #define T_COP_UNUSABLE 11 /* Coprocessor unusable */ 34 #define T_OVFLOW 12 /* Arithmetic overflow */ 35 36 #define T_USER 0x10 /* user-mode flag or'ed with type */ 37