mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +00:00
[NTOS] Fix KiGeneralProtectionFault
This commit is contained in:
parent
26f541aa97
commit
5b6e7eceda
1 changed files with 1 additions and 13 deletions
|
@ -395,26 +395,14 @@ FUNC KiGeneralProtectionFault
|
||||||
|
|
||||||
/* Dispatch privileged instruction fault */
|
/* Dispatch privileged instruction fault */
|
||||||
DispatchException eax, 0, 0, 0, 0
|
DispatchException eax, 0, 0, 0, 0
|
||||||
jmp KiGpfFatal
|
jmp KiGpfExit
|
||||||
|
|
||||||
DispatchAccessViolation:
|
DispatchAccessViolation:
|
||||||
|
|
||||||
/* Dispatch access violation */
|
/* Dispatch access violation */
|
||||||
DispatchException eax, 2, 0, -1, 0
|
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:
|
KiGpfExit:
|
||||||
/* Return */
|
|
||||||
/* Return */
|
/* Return */
|
||||||
ExitTrap TF_SAVE_ALL
|
ExitTrap TF_SAVE_ALL
|
||||||
ENDFUNC
|
ENDFUNC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue