diff --git a/reactos/ntoskrnl/ke/i386/stkswitch.S b/reactos/ntoskrnl/ke/i386/stkswitch.S index 5d602d28f80..941e3e34f9b 100644 --- a/reactos/ntoskrnl/ke/i386/stkswitch.S +++ b/reactos/ntoskrnl/ke/i386/stkswitch.S @@ -29,27 +29,27 @@ #include #include #include - + /* FUNCTIONS ****************************************************************/ .globl _KeStackSwitchAndRet@4 _KeStackSwitchAndRet@4: pushl %ebp movl %esp, %ebp - + cli movl 8(%ebp), %esp sti - + popl %edi popl %esi popl %ebx popl %ebp ret $28 - + .globl _KePushAndStackSwitchAndSysRet@28 _KePushAndStackSwitchAndSysRet@28: pushl %ebp @@ -68,7 +68,7 @@ _KePushAndStackSwitchAndSysRet@28: pushl 24(%ebp) pushl 28(%ebp) - movl %ebx, %fs:KPCR_CURRENT_THREAD + movl %fs:KPCR_CURRENT_THREAD, %ebx movl %esp, KTHREAD_CALLBACK_STACK(%ebx) movl 32(%ebp), %esp @@ -78,4 +78,4 @@ _KePushAndStackSwitchAndSysRet@28: call _KeLowerIrql@4 jmp KeReturnFromSystemCall - +