From b9a988061e8220c5ef2406f5cd2221bf3f1b435d Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 9 Oct 2009 16:29:05 +0200 Subject: Exiting from a thread now works without hanging everything. --- Source/Kernel/SyscallManager/IDT.ns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Kernel/SyscallManager') diff --git a/Source/Kernel/SyscallManager/IDT.ns.cpp b/Source/Kernel/SyscallManager/IDT.ns.cpp index dc40747..36c584d 100644 --- a/Source/Kernel/SyscallManager/IDT.ns.cpp +++ b/Source/Kernel/SyscallManager/IDT.ns.cpp @@ -74,7 +74,7 @@ extern "C" void interrupt_handler(registers_t regs) { doSwitch = doSwitch or Task::IRQwakeup(regs.int_no - 32); } if (regs.int_no == 66) { //This syscall signals to kernel that thread ended. - Task::currentThread->finish(regs.eax); + Task::currentThreadExits(regs.eax); } if (doSwitch) Task::doSwitch(); //DO NEVER COUNT ON COMMING BACK FROM HERE } -- cgit v1.2.3