6 /* Emulate cli/sti instructions */
7 #define KV86M_EMULATE_CLI_STI (0x1)
8 /* Allow the v86 mode code to access i/o ports */
9 #define KV86M_ALLOW_IO_PORT_ACCESS (0x2)
11 typedef struct _KV86M_REGISTERS
14 * General purpose registers
40 ULONG RecoveryAddress
;
41 UCHAR RecoveryInstruction
[4];
45 } KV86M_REGISTERS
, *PKV86M_REGISTERS
;
47 typedef struct _KV86M_TRAP_FRAME
51 ULONG SavedExceptionStack
;
54 * These are put on the top of the stack by the routine that entered
55 * v86 mode so the exception handlers can find the control information
57 struct _KV86M_REGISTERS
* regs
;
59 } KV86M_TRAP_FRAME
, *PKV86M_TRAP_FRAME
;