1 /* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * 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. 9 * 10 * %sccs.include.redist.c% 11 * 12 * from: Utah $Hdr: trap.h 1.7 91/03/25$ 13 * 14 * @(#)trap.h 7.6 (Berkeley) 06/05/92 15 */ 16 17 /* 18 * Trap codes 19 */ 20 21 #define T_BUSERR 0 22 #define T_ADDRERR 1 23 #define T_ILLINST 2 24 #define T_ZERODIV 3 25 #define T_CHKINST 4 26 #define T_TRAPVINST 5 27 #define T_PRIVINST 6 28 #define T_TRACE 7 29 #define T_MMUFLT 8 30 #define T_SSIR 9 31 #define T_FMTERR 10 32 #define T_FPERR 11 33 #define T_COPERR 12 34 #define T_ASTFLT 13 35 #define T_TRAP15 15 36 #define T_FPEMULI 16 37 #define T_FPEMULD 17 38 39 #define T_USER 0x80 /* user-mode flag or'ed with type */ 40 41