From 0365bbb5c58912fd24b3d33b90477d3de5d46d96 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 15 May 2015 02:06:48 +0200 Subject: fixes and imporvements --- lib/logger/log.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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"); + } + } -- cgit v1.2.3