Trying to reduce the ability for a fork bomb to fault the kernel
[tpg/acess2.git] / Kernel / arch / x86 / proc.asm
index e0598a5..732d35f 100644 (file)
@@ -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
        
        ;

UCC git Repository :: git.ucc.asn.au