Kernel: Generally improve signals
This commit is contained in:
@@ -86,7 +86,6 @@ namespace Kernel
|
||||
|
||||
void Scheduler::reschedule()
|
||||
{
|
||||
VERIFY_STI();
|
||||
DISABLE_INTERRUPTS();
|
||||
|
||||
if (save_current_thread())
|
||||
@@ -247,7 +246,7 @@ namespace Kernel
|
||||
current->set_started();
|
||||
start_thread(current->rsp(), current->rip());
|
||||
case Thread::State::Executing:
|
||||
while (current->has_signal_to_execute() && current->state() == Thread::State::Executing)
|
||||
while (current->has_signal_to_execute())
|
||||
current->handle_signal();
|
||||
// fall through
|
||||
case Thread::State::Terminating:
|
||||
|
||||
Reference in New Issue
Block a user