Kernel: Remove unnecessary hack
This is no longer needed as thread unlocks its spinlock before calling Process::exit() on terminating signal
This commit is contained in:
parent
652eb2346c
commit
ef76ffa1c1
|
@ -627,9 +627,6 @@ namespace Kernel
|
|||
{
|
||||
Processor::set_interrupt_state(InterruptState::Disabled);
|
||||
setup_process_cleanup();
|
||||
// This is super hacky but prevents a crash in yield :D
|
||||
if (m_signal_lock.current_processor_has_lock())
|
||||
m_signal_lock.unlock(InterruptState::Disabled);
|
||||
Processor::yield();
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue