From 3a99d30e3e607516ae9d07f9be04325e79aa401e Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 16 Jan 2006 17:07:45 +0000 Subject: [PATCH] Do set ESP0, but after we save the old value for the V86 hack. svn path=/trunk/; revision=20915 --- reactos/ntoskrnl/ke/i386/ctxswitch.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/ctxswitch.S b/reactos/ntoskrnl/ke/i386/ctxswitch.S index bb974564034..22b5ccf051d 100644 --- a/reactos/ntoskrnl/ke/i386/ctxswitch.S +++ b/reactos/ntoskrnl/ke/i386/ctxswitch.S @@ -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