summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/logger/log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c
index a51ccf5..bcfedf0 100644
--- a/lib/logger/log.c
+++ b/lib/logger/log.c
@@ -59,7 +59,13 @@ void panic(char *module_name, char *message)
char buf_log[256];
tfp_sprintf(buf_log,"KERNEL PANIC !! %s: %s\n",module_name,message);
console_put_str_red(buf_log);
- while(1); // halt
+
+ while(1)
+ {
+ asm volatile("cli");
+ asm volatile("hlt");
+ }
+
}