Fixed invalid parameters passed to Threads_Exit by SYS_EXIT
authorJohn Hodge <[email protected]>
Mon, 28 Sep 2009 01:12:18 +0000 (09:12 +0800)
committerJohn Hodge <[email protected]>
Mon, 28 Sep 2009 01:12:18 +0000 (09:12 +0800)
Kernel/syscalls.c

index ff47294..4275274 100644 (file)
@@ -45,7 +45,7 @@ void SyscallHandler(tSyscallRegs *Regs)
        switch(Regs->Num)
        {
        // -- Exit the current thread
-       case SYS_EXIT:  Threads_Exit(); break;
+       case SYS_EXIT:  Threads_Exit(0, Regs->Arg1);    break;
        
        // -- Put the current thread to sleep
        case SYS_SLEEP: Threads_Sleep();        break;

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