https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5b6e7eceda6e436a24ced…
commit 5b6e7eceda6e436a24ced966f9f689f461c03cf0
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri Dec 9 20:19:29 2022 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Wed Jan 4 10:32:28 2023 +0100
[NTOS] Fix KiGeneralProtectionFault
---
ntoskrnl/ke/amd64/trap.S | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/ntoskrnl/ke/amd64/trap.S b/ntoskrnl/ke/amd64/trap.S
index 45569495390..9ca9dacde94 100644
--- a/ntoskrnl/ke/amd64/trap.S
+++ b/ntoskrnl/ke/amd64/trap.S
@@ -395,26 +395,14 @@ FUNC KiGeneralProtectionFault
/* Dispatch privileged instruction fault */
DispatchException eax, 0, 0, 0, 0
- jmp KiGpfFatal
+ jmp KiGpfExit
DispatchAccessViolation:
/* Dispatch access violation */
DispatchException eax, 2, 0, -1, 0
-KiGpfFatal:
-
- /* Bugcheck */
- mov ecx, UNEXPECTED_KERNEL_MODE_TRAP
- mov rdx, HEX(000D) // EXCEPTION_GP_FAULT
- xor r8, r8
- mov r9, [rbp + KTRAP_FRAME_ErrorCode] // error code
- sub rsp, 8
- mov [rsp + KTRAP_FRAME_P5+8], rbp // trap frame
- call KeBugCheckWithTf
-
KiGpfExit:
- /* Return */
/* Return */
ExitTrap TF_SAVE_ALL
ENDFUNC