From 7ff724fe8f709440da9c730fdb8dcbaa4f989ed5 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 23:59:14 -0400 Subject: FAT16 directory enumeration, making many functions static, new 'log' functions to wrap vga and serial --- src/kernel/panic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel/panic.c') 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 -- cgit v1.2.3