From 332817eda16de8a89a1f61b025a39cab2b733ad7 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 27 Nov 2020 19:22:20 +0500 Subject: [PATCH] Panic --- kernelmq/exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernelmq/exception.c b/kernelmq/exception.c index 4cb3d7a..0a22c63 100644 --- a/kernelmq/exception.c +++ b/kernelmq/exception.c @@ -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."); }