From 657372f1be95393b76a54f258ba3f937b4073abe Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 24 Apr 2021 10:09:43 +0200 Subject: New paging manager and multiboot2 tools --- src/boucane.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/boucane.cc') diff --git a/src/boucane.cc b/src/boucane.cc index 8baa1ba..aa06152 100644 --- a/src/boucane.cc +++ b/src/boucane.cc @@ -1,10 +1,21 @@ #include "boucane.hpp" #include "core/idt.hpp" +#include "boot/multiboot2.hpp" +#include "core/paging.hpp" + +extern u32 MB_INFO; extern "C" void boucane(){ clear(); - printk("Booting Boucane v%d.%d.%d",VERSION_MAJOR,VERSION_MINOR, VERSION_PATH); + printk("Booting Boucane v%d.%d.%d\n",VERSION_MAJOR,VERSION_MINOR, VERSION_PATH); idt_enable_interrupt(); + paging_enable(); + + u64 p; + u32 size; + if(mb2_find_old_rsdp((u32*)MB_INFO,&p,&size)){ + printk("RSDP Table found!"); + } while(1); } \ No newline at end of file -- cgit v1.2.3