mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
Add "REACTOS Mm Hack of Doom" again (removed in r39723). Bug #4296.
svn path=/trunk/; revision=40181
This commit is contained in:
parent
f20923b70c
commit
8cb1d37567
2 changed files with 6 additions and 5 deletions
|
@ -389,9 +389,6 @@ SetStack:
|
|||
|
||||
/* Checking NPX, disable interrupts now */
|
||||
mov eax, [esi+KTHREAD_INITIAL_STACK]
|
||||
|
||||
/* HACK */
|
||||
mov ecx, [eax - 4]
|
||||
cli
|
||||
|
||||
/* Get the NPX State */
|
||||
|
|
|
@ -1924,10 +1924,14 @@ _KiTrap14:
|
|||
NoFixUp:
|
||||
mov edi, cr2
|
||||
|
||||
/* REACTOS Mm Hack of Doom */
|
||||
test dword ptr [ebp+KTRAP_FRAME_EFLAGS], EFLAGS_INTERRUPT_MASK
|
||||
je HandlePf
|
||||
|
||||
/* Enable interrupts and check if we got here with interrupts disabled */
|
||||
sti
|
||||
test dword ptr [ebp+KTRAP_FRAME_EFLAGS], EFLAGS_INTERRUPT_MASK
|
||||
jz IllegalState
|
||||
/* test dword ptr [ebp+KTRAP_FRAME_EFLAGS], EFLAGS_INTERRUPT_MASK
|
||||
jz IllegalState */
|
||||
|
||||
HandlePf:
|
||||
/* Send trap frame and check if this is kernel-mode or usermode */
|
||||
|
|
Loading…
Reference in a new issue