Kernel/x86 - Fixed bug in user start, hidden by not updating usermode
authorJohn Hodge <[email protected]>
Mon, 17 Oct 2011 14:57:31 +0000 (22:57 +0800)
committerJohn Hodge <[email protected]>
Mon, 17 Oct 2011 14:57:31 +0000 (22:57 +0800)
Kernel/arch/x86/proc.c

index 255765a..cb772f4 100644 (file)
@@ -726,7 +726,6 @@ void Proc_StartUser(Uint Entrypoint, Uint Base, int ArgC, char **ArgV, int DataS
        *--stack = (Uint)ArgV;
        *--stack = (Uint)ArgC;
        *--stack = Base;
-       *--stack = 0;   // Return Address
        
        Proc_StartProcess(ss, (Uint)stack, 0x202, cs, Entrypoint);
 }

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