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