diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-15 02:06:48 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-15 02:06:48 +0200 |
| commit | 0365bbb5c58912fd24b3d33b90477d3de5d46d96 (patch) | |
| tree | 0e171394f0e9f508b6ff1a7971ce61ddf8b2f989 /lib | |
| parent | fb8a5f18835e8811dd1a98b8eb5352151fc2df31 (diff) | |
fixes and imporvements
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/logger/log.c | 8 |
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"); + } + } |
