1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
This commit is contained in:
Alex Kotov 2020-11-27 19:22:20 +05:00
parent de1cf2fb2e
commit 332817eda1
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -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.");
}