diff options
author | Marvin Borner | 2019-12-21 22:22:03 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-21 22:22:03 +0100 |
commit | 499784a824c541001c2fd52ae95eba88dcfc952b (patch) | |
tree | c3c26d7c8a3b9291d909f4655b7d27a5ae2369bc /src/kernel/system.c | |
parent | 38610cd06dc0b5a3a4ee46f5fe7c341191aa2bc1 (diff) |
Many debugging/serial improvements
Sorry for the little information, but I did many things :)
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r-- | src/kernel/system.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c index 179b2a2..ada1750 100644 --- a/src/kernel/system.c +++ b/src/kernel/system.c @@ -89,9 +89,7 @@ void panic(char *msg) asm ("cli"); vesa_set_color(vesa_dark_red); kernel_time(); - serial_write("\nPANIC: "); - serial_write(msg); - serial_write(" - System halted!\n"); + serial_printf("PANIC: %s - System halted!", msg); printf("PANIC: %s - System halted!\n", msg); halt_loop(); } @@ -105,7 +103,7 @@ void assert(int x) void halt_loop() { - serial_write("\n!!! HALT !!!\n"); + serial_printf("\n!!! HALT !!!"); asm ("cli"); loop: asm ("hlt"); |