diff options
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; |