mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Panic
This commit is contained in:
parent
de1cf2fb2e
commit
332817eda1
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "interrupt.h"
|
||||
#include "config.h"
|
||||
#include "logger.h"
|
||||
#include "panic.h"
|
||||
|
||||
static const char *const messages[] = {
|
||||
"0 #DE - Divide Error Exception",
|
||||
|
@ -48,6 +49,5 @@ void exception_handler(struct IsrRegisters regs)
|
|||
|
||||
logger_fail_from("exception", "Unhandled protected-mode exception:\n%s", messages[regs.int_no]);
|
||||
|
||||
asm volatile("cli");
|
||||
while (1) {}
|
||||
panic("Can not continue.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue