From 0b1620bcebe5b0c7da24a38f6bae99d3e21c180f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 28 Sep 2009 09:12:18 +0800 Subject: [PATCH] Fixed invalid parameters passed to Threads_Exit by SYS_EXIT --- Kernel/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1