Skip to content

Commit 2d6af83

Browse files
diseanbinarymaster
authored andcommitted
[NTOS:KE] HAXM hacks
1 parent ee9285b commit 2d6af83

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ntoskrnl/ke/i386/exp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,10 @@ KiDispatchExceptionFromTrapFrame(IN NTSTATUS Code,
10621062
IN PKTRAP_FRAME TrapFrame)
10631063
{
10641064
EXCEPTION_RECORD ExceptionRecord;
1065+
// static ULONG Cnt = 0;
10651066

1067+
// if (Cnt++ > 30)
1068+
{
10661069
/* Build the exception record */
10671070
ExceptionRecord.ExceptionCode = Code;
10681071
ExceptionRecord.ExceptionFlags = Flags;
@@ -1084,6 +1087,7 @@ KiDispatchExceptionFromTrapFrame(IN NTSTATUS Code,
10841087
TrapFrame->EFlags & EFLAGS_V86_MASK ?
10851088
-1 : KiUserTrap(TrapFrame),
10861089
TRUE);
1090+
}
10871091

10881092
/* Return from this trap */
10891093
KiEoiHelper(TrapFrame);

ntoskrnl/ke/i386/trap.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ idt _KiTrap0F, INT_32_DPL0 /* INT 12: Machine Check Exception (#MC)*/
5959
idt _KiTrap0F, INT_32_DPL0 /* INT 13: SIMD FPU Exception (#XF) */
6060
REPEAT 21
6161
idt _KiTrap0F, INT_32_DPL0 /* INT 14-28: UNDEFINED INTERRUPTS */
62+
// idt _KiTrap01, INT_32_DPL0 /* INT 14-28: UNDEFINED INTERRUPTS */
6263
ENDR
6364
idt _KiRaiseSecurityCheckFailure, INT_32_DPL3
6465
/* INT 29: Handler for __fastfail */

0 commit comments

Comments
 (0)