Remove a hack from KiTrap14. Put a hack in other place.

svn path=/trunk/; revision=39723
This commit is contained in:
Dmitry Gorbachev 2009-02-23 13:18:28 +00:00
parent 4bd719527f
commit f8a9311089
2 changed files with 3 additions and 4 deletions

View file

@ -389,6 +389,9 @@ SetStack:
/* Checking NPX, disable interrupts now */
mov eax, [esi+KTHREAD_INITIAL_STACK]
/* HACK */
mov ecx, [eax - 4]
cli
/* Get the NPX State */

View file

@ -1924,10 +1924,6 @@ _KiTrap14:
NoFixUp:
mov edi, cr2
/* ROS HACK: Sometimes we get called with INTS DISABLED! WTF? */
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