From a90f613e50b1677b03d19793039e0769a09caf9f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jul 2021 19:36:50 +0200 Subject: abstract away logging Now, the kernel only interfaces with the architecture dependent stuff via functions declared in generic.h. I'll write a linter enforcing this soon. --- src/arch/i386/boot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/arch/i386/boot.c') diff --git a/src/arch/i386/boot.c b/src/arch/i386/boot.c index b2b84f0..37e1aff 100644 --- a/src/arch/i386/boot.c +++ b/src/arch/i386/boot.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -6,11 +7,11 @@ void kmain_early() { tty_clear(); - tty_const("gdt..."); + log_const("gdt..."); gdt_init(); - tty_const("idt..."); + log_const("idt..."); idt_init(); - tty_const("sysenter..."); + log_const("sysenter..."); sysenter_setup(); kmain(); } -- cgit v1.2.3