1 /* 2 * Copyright (c) 1982 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 * 6 * @(#)trap.h 6.2 (Berkeley) 06/08/85 7 */ 8 9 /* 10 * Trap type values 11 */ 12 13 /* The first three constant values are known to the real world <signal.h> */ 14 #define T_RESADFLT 0 /* reserved addressing fault */ 15 #define T_PRIVINFLT 1 /* privileged instruction fault */ 16 #define T_RESOPFLT 2 /* reserved operand fault */ 17 /* End of known constants */ 18 #define T_BPTFLT 3 /* bpt instruction fault */ 19 #define T_XFCFLT 4 /* xfc instruction fault */ 20 #define T_SYSCALL 5 /* chmk instruction (syscall trap) */ 21 #define T_ARITHTRAP 6 /* arithmetic trap */ 22 #define T_ASTFLT 7 /* software level 2 trap (ast deliv) */ 23 #define T_SEGFLT 8 /* segmentation fault */ 24 #define T_PROTFLT 9 /* protection fault */ 25 #define T_TRCTRAP 10 /* trace trap */ 26 #define T_COMPATFLT 11 /* compatibility mode fault */ 27 #define T_PAGEFLT 12 /* page fault */ 28 #define T_TABLEFLT 13 /* page table fault */ 29