152131Smckusick /* 252131Smckusick * Copyright (c) 1988 University of Utah. 3*63217Sbostic * Copyright (c) 1992, 1993 4*63217Sbostic * The Regents of the University of California. All rights reserved. 552131Smckusick * 652131Smckusick * This code is derived from software contributed to Berkeley by 752131Smckusick * the Systems Programming Group of the University of Utah Computer 852131Smckusick * Science Department and Ralph Campbell. 952131Smckusick * 1052131Smckusick * %sccs.include.redist.c% 1152131Smckusick * 1252131Smckusick * from: Utah $Hdr: trap.h 1.1 90/07/09$ 1352131Smckusick * 14*63217Sbostic * @(#)trap.h 8.1 (Berkeley) 06/10/93 1552131Smckusick */ 1652131Smckusick 1752131Smckusick /* 1852131Smckusick * Trap codes 1952131Smckusick * also known in trap.c for name strings 2052131Smckusick */ 2152131Smckusick 2252131Smckusick #define T_INT 0 /* Interrupt pending */ 2352131Smckusick #define T_TLB_MOD 1 /* TLB modified fault */ 2452131Smckusick #define T_TLB_LD_MISS 2 /* TLB miss on load or ifetch */ 2552131Smckusick #define T_TLB_ST_MISS 3 /* TLB miss on a store */ 2652131Smckusick #define T_ADDR_ERR_LD 4 /* Address error on a load or ifetch */ 2752131Smckusick #define T_ADDR_ERR_ST 5 /* Address error on a store */ 2852131Smckusick #define T_BUS_ERR_IFETCH 6 /* Bus error on an ifetch */ 2952131Smckusick #define T_BUS_ERR_LD_ST 7 /* Bus error on a load or store */ 3052131Smckusick #define T_SYSCALL 8 /* System call */ 3152131Smckusick #define T_BREAK 9 /* Breakpoint */ 3252131Smckusick #define T_RES_INST 10 /* Reserved instruction exception */ 3352131Smckusick #define T_COP_UNUSABLE 11 /* Coprocessor unusable */ 3452131Smckusick #define T_OVFLOW 12 /* Arithmetic overflow */ 3552131Smckusick 3652131Smckusick #define T_USER 0x10 /* user-mode flag or'ed with type */ 37