Do set ESP0, but after we save the old value for the V86 hack.

svn path=/trunk/; revision=20915
This commit is contained in:
Alex Ionescu 2006-01-16 17:07:45 +00:00
parent 68d8925879
commit 3a99d30e3e

View file

@ -170,12 +170,12 @@ BadThread:
NoAdjust:
/* Set new ESP0 */
//mov [ebp+KTSS_ESP0], eax
/* Save it */
push [ebp+KTSS_ESP0]
/* Set new ESP0 */
mov [ebp+KTSS_ESP0], eax
/* Set TEB pointer */
mov eax, [esi+KTHREAD_TEB]
mov [ebx+KPCR_TEB], eax