From: John Hodge Date: Mon, 28 Sep 2009 01:12:18 +0000 (+0800) Subject: Fixed invalid parameters passed to Threads_Exit by SYS_EXIT X-Git-Tag: rel0.06~410 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0b1620bcebe5b0c7da24a38f6bae99d3e21c180f;p=tpg%2Facess2.git Fixed invalid parameters passed to Threads_Exit by SYS_EXIT --- diff --git a/Kernel/syscalls.c b/Kernel/syscalls.c index ff472941..4275274e 100644 --- a/Kernel/syscalls.c +++ b/Kernel/syscalls.c @@ -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;