summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-15 02:06:48 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-15 02:06:48 +0200
commit0365bbb5c58912fd24b3d33b90477d3de5d46d96 (patch)
tree0e171394f0e9f508b6ff1a7971ce61ddf8b2f989 /lib
parentfb8a5f18835e8811dd1a98b8eb5352151fc2df31 (diff)
fixes and imporvements
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");
+ }
+
}