mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
[NTOS]
- Fix bugcheck paramters in KiGeneralProtectionFault - Disable x87 fpu exceptions svn path=/branches/ros-amd64-bringup/; revision=45185
This commit is contained in:
parent
bc00bfdb25
commit
b9ebd4c107
|
@ -179,6 +179,11 @@ KiInitializeCpuFeatures(ULONG Cpu)
|
|||
|
||||
/* Disable fpu monitoring */
|
||||
__writecr0(__readcr0() & ~CR0_MP);
|
||||
|
||||
/* Disable x87 fpu exceptions */
|
||||
__writecr0(__readcr0() & ~CR0_NE);
|
||||
|
||||
asm volatile ("fninit\n");
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -588,14 +588,13 @@ KiGpfFatal:
|
|||
/* Bugcheck */
|
||||
mov ecx, UNEXPECTED_KERNEL_MODE_TRAP
|
||||
mov rdx, 0x0000D // EXCEPTION_GP_FAULT
|
||||
xor rdx, rdx
|
||||
xor r8, r8
|
||||
xor r9, r9 // Reserved
|
||||
mov [rbp + KTRAP_FRAME_P5], rbp // trap frame
|
||||
mov r9, [rbp + KTRAP_FRAME_ErrorCode] // error code
|
||||
sub rsp, 8
|
||||
mov [rsp + KTRAP_FRAME_P5+8], rbp // trap frame
|
||||
call _KeBugCheckWithTf
|
||||
|
||||
|
||||
|
||||
KiGpfPopSegDs:
|
||||
mov [rbp + KTRAP_FRAME_SegDs], dx
|
||||
jmp KiGpfPopSeg
|
||||
|
|
Loading…
Reference in a new issue