64 PUCHAR Inst = (
PUCHAR)(BiosFrame->CsBase + BiosFrame->Eip);
67 DPRINT1(
"HAL: An invalid V86 opcode was encountered at address %X:%X\n"
68 "Opcode: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n",
69 BiosFrame->SegCs, BiosFrame->Eip,
70 Inst[0], Inst[1], Inst[2], Inst[3], Inst[4],
71 Inst[5], Inst[6], Inst[7], Inst[8], Inst[9]);
87 Stack = (
PUSHORT)(BiosFrame->SsBase + (BiosFrame->Esp & 0xFFFF));
91 *
Stack = BiosFrame->EFlags & 0xFFFF;
95 *
Stack = BiosFrame->SegCs & 0xFFFF;
99 *
Stack = BiosFrame->Eip & 0xFFFF;
103 BiosFrame->Eip = Eip & 0xFFFF;
104 BiosFrame->SegCs = Eip >> 16;
110 BiosFrame->CsBase = BiosFrame->SegCs << 4;
111 BiosFrame->CsLimit = 0xFFFF;
112 BiosFrame->CsFlags = 0;
126 BiosFrame->SsBase = BiosFrame->
SegSs << 4;
127 BiosFrame->SsLimit = 0xFFFF;
128 BiosFrame->SsFlags = 0;
132 if (BiosFrame->Eip > BiosFrame->CsLimit)
return FALSE;
145 TrapFrame->
SegCs = BiosFrame->SegCs;
146 TrapFrame->
EFlags = BiosFrame->EFlags;
165 BiosFrame.
SegSs = TrapFrame->HardwareSegSs;
166 BiosFrame.
Esp = TrapFrame->HardwareEsp;
167 BiosFrame.
EFlags = TrapFrame->EFlags;
168 BiosFrame.
SegCs = TrapFrame->SegCs;
169 BiosFrame.
Eip = TrapFrame->Eip;
193 TrapFrame->Eip = BiosFrame.
Eip;
222 DPRINT1(
"HAL: Trap0D while not in V86 mode\n");
274 V86TrapFrame.
V86Es = 0;
275 V86TrapFrame.
V86Ds = 0;
276 V86TrapFrame.
V86Gs = 0;
277 V86TrapFrame.
V86Fs = 0;
279 V86TrapFrame.
HardwareEsp = StackOffset + CodeOffset;
281 V86TrapFrame.
SegCs = 0x2000;
282 V86TrapFrame.
Eip = CodeOffset;
397 if (*
Entry != 0xFFFF)
644#if defined(SARCH_XBOX) || defined(SARCH_PC98)
669 RestoreWriteProtection = IdtPte->
Write != 0;
695 IdtPte->
Write = RestoreWriteProtection;
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
VOID NTAPI HalpBiosCall(VOID)
VOID NTAPI HalpRestoreTrapHandlers(VOID)
HARDWARE_PTE HalpSavedPte
VOID NTAPI HalpRestoreIoPermissionsAndTask(VOID)
DECLSPEC_NORETURN VOID FASTCALL HalpTrap0DHandler(IN PKTRAP_FRAME TrapFrame)
VOID NTAPI HalpSwitchToRealModeTrapHandlers(VOID)
USHORT HalpSavedIoMapData[IOPM_SIZE/sizeof(USHORT)][2]
VOID NTAPI HalpStoreAndClearIopm(VOID)
ULONG HalpSavedIoMapEntries
BOOLEAN NTAPI HalpBiosDisplayReset(VOID)
BOOLEAN FASTCALL HalpDispatchV86Opcode(IN PKTRAP_FRAME TrapFrame)
VOID NTAPI HalpMapRealModeMemory(VOID)
VOID NTAPI HalpUnmapRealModeMemory(VOID)
VOID NTAPI HalpReturnTss(VOID)
BOOLEAN FASTCALL HalpPushInt(IN PHAL_BIOS_FRAME BiosFrame, IN ULONG Interrupt)
VOID NTAPI HalpBorrowTss(VOID)
BOOLEAN FASTCALL HalpOpcodeInvalid(IN PHAL_BIOS_FRAME BiosFrame)
VOID DECLSPEC_NORETURN HalpTrap06(VOID)
VOID NTAPI HalpSetupRealModeIoPermissionsAndTask(VOID)
void __cdecl HalpTrap0D()
BOOLEAN FASTCALL HalpOpcodeINTnn(IN PHAL_BIOS_FRAME BiosFrame)
VOID NTAPI HalpRestoreIopm(VOID)
VOID NTAPI HalpFlushTLB(VOID)
VOID __cdecl HalpRealModeStart(VOID)
VOID FASTCALL HalpExitToV86(PKTRAP_FRAME TrapFrame)
#define HalAddressToPte(x)
#define HalAddressToPde(x)
#define RtlFillMemory(Dest, Length, Fill)
NTSYSAPI void WINAPI DbgBreakPoint(void)
void __cdecl _disable(void)
__INTRIN_INLINE void __writeeflags(uintptr_t Value)
__INTRIN_INLINE unsigned long __readcr0(void)
__INTRIN_INLINE uintptr_t __readeflags(void)
__INTRIN_INLINE void __writecr0(unsigned int Data)
#define KiComputeIopmOffset(MapNumber)
BOOLEAN HalpNMIInProgress
#define DECLSPEC_NORETURN
FORCEINLINE PVOID KeQueryInterruptHandler(IN ULONG Vector)
FORCEINLINE VOID KeRegisterInterruptHandler(IN ULONG Vector, IN PVOID Handler)
DECLSPEC_NORETURN VOID FASTCALL KiEoiHelper(IN PKTRAP_FRAME TrapFrame)
base of all file and directory entries
struct _KGDTENTRY::@2451::@2453 Bits
struct _KGDTENTRY::@2451::@2452 Bytes
union _KGDTENTRY::@2451 HighWord
FORCEINLINE VOID KiEnterTrap(IN PKTRAP_FRAME TrapFrame)
FORCEINLINE VOID KiDumpTrapFrame(IN PKTRAP_FRAME TrapFrame)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_INTERRUPT_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFINTERRUPT * Interrupt
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
_Must_inspect_result_ _In_ ULONG Flags