FreeBSD/Linux Kernel Cross Reference
sys/i386/trap.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: trap.h,v $
29 * Revision 2.5 91/05/14 16:18:26 mrt
30 * Correcting copyright
31 *
32 * Revision 2.4 91/02/05 17:15:33 mrt
33 * Changed to new Mach copyright
34 * [91/02/01 17:38:51 mrt]
35 *
36 * Revision 2.3 90/10/25 14:45:03 rwd
37 * Added watchpoint support.
38 * [90/10/18 rpd]
39 *
40 * Revision 2.2 90/05/03 15:38:10 dbg
41 * Created.
42 * [90/02/08 dbg]
43 *
44 */
45
46 #ifndef _I386_TRAP_H_
47 #define _I386_TRAP_H_
48
49 /*
50 * Hardware trap vectors for i386.
51 */
52 #define T_DIVIDE_ERROR 0
53 #define T_DEBUG 1
54 #define T_NMI 2 /* non-maskable interrupt */
55 #define T_INT3 3 /* int 3 instruction */
56 #define T_OVERFLOW 4 /* overflow test */
57 #define T_OUT_OF_BOUNDS 5 /* bounds check */
58 #define T_INVALID_OPCODE 6 /* invalid op code */
59 #define T_NO_FPU 7 /* no floating point */
60 #define T_DOUBLE_FAULT 8 /* double fault */
61 #define T_FPU_FAULT 9
62 /* 10 */
63 #define T_SEGMENT_NOT_PRESENT 11
64 #define T_STACK_FAULT 12
65 #define T_GENERAL_PROTECTION 13
66 #define T_PAGE_FAULT 14
67 /* 15 */
68 #define T_FLOATING_POINT_ERROR 16
69 #define T_WATCHPOINT 17
70
71 /*
72 * Page-fault trap codes.
73 */
74 #define T_PF_PROT 0x1 /* protection violation */
75 #define T_PF_WRITE 0x2 /* write access */
76 #define T_PF_USER 0x4 /* from user state */
77
78 #endif _I386_TRAP_H_
Cache object: 386560bd190f685732722b6a8f62e2df
|