mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +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 */
|
/* Checking NPX, disable interrupts now */
|
||||||
mov eax, [esi+KTHREAD_INITIAL_STACK]
|
mov eax, [esi+KTHREAD_INITIAL_STACK]
|
||||||
|
|
||||||
/* HACK */
|
|
||||||
mov ecx, [eax - 4]
|
|
||||||
cli
|
cli
|
||||||
|
|
||||||
/* Get the NPX State */
|
/* Get the NPX State */
|
||||||
|
|
|
@ -1924,10 +1924,14 @@ _KiTrap14:
|
||||||
NoFixUp:
|
NoFixUp:
|
||||||
mov edi, cr2
|
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 */
|
/* Enable interrupts and check if we got here with interrupts disabled */
|
||||||
sti
|
sti
|
||||||
test dword ptr [ebp+KTRAP_FRAME_EFLAGS], EFLAGS_INTERRUPT_MASK
|
/* test dword ptr [ebp+KTRAP_FRAME_EFLAGS], EFLAGS_INTERRUPT_MASK
|
||||||
jz IllegalState
|
jz IllegalState */
|
||||||
|
|
||||||
HandlePf:
|
HandlePf:
|
||||||
/* Send trap frame and check if this is kernel-mode or usermode */
|
/* Send trap frame and check if this is kernel-mode or usermode */
|
||||||
|
|
Loading…
Reference in a new issue