X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fproc.asm;h=732d35fce2b3234a757f67287a27b5f336982d15;hb=4d04d710e6d90ac28524925859a7ef621c675bcb;hp=e0598a5569bd6246c259709740b84daeae67818c;hpb=de2ae10743172075f2d527780bdfd890ccddb8e7;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/proc.asm b/Kernel/arch/x86/proc.asm index e0598a55..732d35fc 100644 --- a/Kernel/arch/x86/proc.asm +++ b/Kernel/arch/x86/proc.asm @@ -165,7 +165,7 @@ Proc_ReturnToUser: ; EAX is the current thread mov ebx, eax - mov eax, [ebx+40] ; Get Kernel Stack + mov eax, [ebx+12*4] ; Get Kernel Stack sub eax, KSTACK_USERSTATE_SIZE ;