From 79e11fedd97325ba3dc7546373817b021edd89c7 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 11 Mar 2021 22:48:10 +0200 Subject: vmm: map multiboot structs --- src/kernel.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/kernel.cc') diff --git a/src/kernel.cc b/src/kernel.cc index b7aae2f..0915365 100644 --- a/src/kernel.cc +++ b/src/kernel.cc @@ -37,8 +37,15 @@ void kernel_main([[maybe_unused]] uint32_t mb_magic, [[maybe_unused]] uint32_t m printk("Hello, kernel World!\n"); dump_address(); - dump_multiboot(mb_magic, mb_addr); // dump_gdt(); + // + + vmm kvmm; + mb_addr = kvmm.map(mb_addr, 0xc03fe000); + + dump_multiboot(mb_magic, mb_addr); + // + // GDT gdt; IDT idt{gdt.descriptor(GDT::kcode)}; -- cgit v1.2.1