panic: add panic function

also remove print messages from APIC driver
This commit is contained in:
Michael Shaw 2023-10-27 22:34:10 -04:00
commit 1cf54c7fd3
4 changed files with 10 additions and 3 deletions

View file

@ -46,6 +46,13 @@ void yield()
}
}
void panic()
{
kprintf(LOG_ERROR "KERNEL PANIC\n");
cli();
yield();
}
static inline void _pic_init()
{
cli();