diff options
author | dzwdz | 2022-04-14 12:19:51 +0200 |
---|---|---|
committer | dzwdz | 2022-04-14 12:19:51 +0200 |
commit | 2eead2f6eab2aa1fbc727ce28d9fa9a8e90a1eec (patch) | |
tree | d4bb0ae50e5f612a4fae67763414f72ea1a85b8a /src/kernel/arch/i386/boot.c | |
parent | dcb2ce6337f54a9821e3971976a07e767846e3c1 (diff) |
kernel: port init's `printf` implementation
Diffstat (limited to 'src/kernel/arch/i386/boot.c')
-rw-r--r-- | src/kernel/arch/i386/boot.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/kernel/arch/i386/boot.c b/src/kernel/arch/i386/boot.c index a2b4f01..a3716ee 100644 --- a/src/kernel/arch/i386/boot.c +++ b/src/kernel/arch/i386/boot.c @@ -8,24 +8,26 @@ #include <kernel/main.h> #include <kernel/panic.h> +void tty_init(void); // TODO put this in a header file + void kmain_early(struct multiboot_info *multiboot) { struct kmain_info info; // setup some basic stuff tty_init(); - tty_const("gdt..."); + kprintf("gdt..."); gdt_init(); - tty_const("idt..."); + kprintf("idt..."); idt_init(); - tty_const("irq..."); + kprintf("irq..."); irq_init(); - tty_const("ata..."); + kprintf("ata..."); ata_init(); { // find the init module struct multiboot_mod *module = &multiboot->mods[0]; if (multiboot->mods_count < 1) { - tty_const("can't find init! "); + kprintf("can't find init! "); panic_invalid_state(); // no init } info.init.at = module->start; |