1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-27 11:24:34 -05:00

Just stealing code from MINIX 3

This commit is contained in:
Braiden Vasco 2017-11-04 15:08:59 +00:00
parent 5cfb4d9fce
commit 25949d0c3c

View file

@ -1,6 +1,7 @@
#include "console.h"
#include "logger.h"
#include "protected.h"
#include "paging.h"
#include "timer.h"
#include "kprintf.h"
@ -55,6 +56,14 @@ void main(const struct KernelMQ_Info *const kinfo_ptr)
protected_initialize();
// Set up a new post-relocate bootstrap pagetable so that
// we can map in VM, and we no longer rely on pre-relocated
// data.
paging_clear();
paging_identity(&kinfo); // Still need 1:1 for lapic and video mem and such.
paging_mapkernel(&kinfo);
paging_load();
timer_register_handler(on_timer);
timer_initialize(50);