forked from Bananymous/banan-os
Kernel: Exceptions will now enable interrupts before calling exit()
this allows scheduler verification on reschedule() not panic
This commit is contained in:
parent
f0b22c48b2
commit
91f812e17f
|
@ -122,6 +122,7 @@ namespace IDT
|
|||
{
|
||||
auto message = BAN::String::formatted("{}, aborting\n", isr_exceptions[isr]);
|
||||
(void)Kernel::Process::current().write(STDERR_FILENO, message.data(), message.size());
|
||||
asm volatile("sti");
|
||||
Kernel::Process::current().exit(1);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue