diff options
author | Marvin Borner | 2019-10-18 22:28:39 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-18 22:28:39 +0200 |
commit | 00761c54b2a41007e611a2470669b334618152b9 (patch) | |
tree | 8aecb5d5d7203af4aad819803280a239daf60c98 /src/kernel/system.h | |
parent | 17c6b30949ce7d4a293862ec8f9b873e17fe0cd8 (diff) |
Improved error logging and debugging possibilities
Diffstat (limited to 'src/kernel/system.h')
-rw-r--r-- | src/kernel/system.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/system.h b/src/kernel/system.h index 8fe7296..363b073 100644 --- a/src/kernel/system.h +++ b/src/kernel/system.h @@ -120,10 +120,9 @@ static inline void panic(char *msg) { asm volatile ("cli"); terminal_set_color(4); kernel_time(); - terminal_write_string("PANIC: "); - terminal_write_string(msg); - terminal_write_string(" - System Halted!"); + serial_write("PANIC: "); serial_write(msg); + serial_write(" - System Halted!\n"); loop: asm volatile ("hlt"); goto loop; |