]>
git.saurik.com Git - apple/xnu.git/blob - EXTERNAL_HEADERS/architecture/i386/frame.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1992 NeXT Computer, Inc.
25 * Intel386 Family: Processor exception frame.
29 * 31 August 1992 ? at NeXT
30 * Added v86 mode stuff.
32 * 8 June 1992 ? at NeXT
33 * Changed name of write field in err_code_t
34 * which collided with write() in shlib.
36 * 30 March 1992 ? at NeXT
41 * Format of the error code
42 * generated by the hardware
43 * for certain exceptions.
46 typedef union err_code
{
47 struct err_code_normal
{
56 struct err_code_pgfault
{
64 #include <architecture/i386/sel.h>
67 * The actual hardware exception frame
68 * is variable in size. An error code is
69 * only pushed for certain exceptions.
70 * Previous stack information is only
71 * pushed for exceptions that cause a
72 * change in privilege level. The dpl
73 * field of the saved CS selector can be
74 * used to determine whether this is the
75 * case. If the interrupted task was
76 * executing in v86 mode, then the data
77 * segment registers are also present in
78 * the exception frame (in addition to
79 * previous stack information). This
80 * case can be determined by examining
84 typedef struct except_frame
{
107 #ifndef EFL_CF /* FIXME */
108 #define EFL_CF 0x00001
109 #define EFL_PF 0x00004
110 #define EFL_AF 0x00010
111 #define EFL_ZF 0x00040
112 #define EFL_SF 0x00080
113 #define EFL_TF 0x00100
114 #define EFL_IF 0x00200
115 #define EFL_DF 0x00400
116 #define EFL_OF 0x00800
117 #define EFL_IOPL 0x03000
118 #define EFL_NT 0x04000
119 #define EFL_RF 0x10000
120 #define EFL_VM 0x20000
121 #define EFL_AC 0x40000
124 #define EFL_CLR 0xfff88028
125 #define EFL_SET 0x00000002