diff options
author | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 23:59:14 -0400 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 23:59:14 -0400 |
commit | 7ff724fe8f709440da9c730fdb8dcbaa4f989ed5 (patch) | |
tree | e7f768ff56798bef3edc166a30e9cb8d7f25bd1e /src/kernel/panic.c | |
parent | 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (diff) | |
download | portland-os-7ff724fe8f709440da9c730fdb8dcbaa4f989ed5.tar.gz |
FAT16 directory enumeration, making many functions static, new 'log' functions to wrap vga and serial
Diffstat (limited to 'src/kernel/panic.c')
-rw-r--r-- | src/kernel/panic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/panic.c b/src/kernel/panic.c index e04ae38..7793065 100644 --- a/src/kernel/panic.c +++ b/src/kernel/panic.c @@ -1,12 +1,13 @@ #include "panic.h" +#include "log.h" #include "vga.h" void panic(const char *message) { vga_set_color(0x4f); vga_blank(); - vga_printsz("Kernel panic: "); - vga_printsz(message); - vga_printsz("\nHalting."); + logsz("Kernel panic: "); + logsz(message); + logsz("\nHalting."); while (1) asm volatile ("hlt"); }
\ No newline at end of file |