blob: e1fea2b72fd038c28067da613ebc8f11409041e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/* $OpenBSD: trap.h,v 1.2 1998/08/29 01:22:36 mickey Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
* the Computer Systems Laboratory at the University of Utah (CSL).
* All rights reserved.
*
* Permission to use, copy, modify and distribute this software is hereby
* granted provided that (1) source code retains these copyright, permission,
* and disclaimer notices, and (2) redistributions including binaries
* reproduce the notices in supporting documentation, and (3) all advertising
* materials mentioning features or use of this software display the following
* acknowledgement: ``This product includes software developed by the
* Computer Systems Laboratory at the University of Utah.''
*
* THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
* IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
* ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* CSL requests users of this software to return to csl-dist@cs.utah.edu any
* improvements that they make and grant CSL redistribution rights.
*
* Utah $Hdr: trap.h 1.6 94/12/16$
*/
#ifndef _MACHINE_TRAP_H_
#define _MACHINE_TRAP_H_
/*
* Trap type values
* also known in trap.c for name strings
*/
#define T_NONEXIST 0
#define T_HPMC 1
#define T_POWERFAIL 2
#define T_RECOVERY 3
#define T_INTERRUPT 4
#define T_LPMC 5
#define T_ITLBMISS 6
#define T_IPROT 7
#define T_ILLEGAL 8
#define T_IBREAK 9
#define T_PRIV_OP 10
#define T_PRIV_REG 11
#define T_OVERFLOW 12
#define T_CONDITION 13
#define T_EXCEPTION 14
#define T_DTLBMISS 15
#define T_ITLBMISSNA 16
#define T_DTLBMISSNA 17
#define T_DPROT 18
#define T_DBREAK 19
#define T_TLB_DIRTY 20
#define T_PAGEREF 21
#define T_EMULATION 22
#define T_HIGHERPL 23
#define T_LOWERPL 24
#define T_TAKENBR 25
#define T_DATACC 26 /* 7100 */
#define T_DATAPID 27 /* 7100 */
#define T_DATALIGN 28 /* 7100 */
#define T_ICS_OVFL 30 /* SW: interrupt stack overflow */
#define T_KS_OVFL 31 /* SW: kernel stack overflow */
#define T_USER 0x20 /* user-mode flag or'ed with type */
#endif /* _MACHINE_TRAP_H_ */
|