Kernel: Exceptions will now enable interrupts before calling exit()

this allows scheduler verification on reschedule() not panic
This commit is contained in:
Bananymous 2023-06-11 01:36:21 +03:00
parent f0b22c48b2
commit 91f812e17f
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ namespace IDT
{ {
auto message = BAN::String::formatted("{}, aborting\n", isr_exceptions[isr]); auto message = BAN::String::formatted("{}, aborting\n", isr_exceptions[isr]);
(void)Kernel::Process::current().write(STDERR_FILENO, message.data(), message.size()); (void)Kernel::Process::current().write(STDERR_FILENO, message.data(), message.size());
asm volatile("sti");
Kernel::Process::current().exit(1); Kernel::Process::current().exit(1);
} }
else else