1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Prepare page dir in "init"

This commit is contained in:
Braiden Vasco 2017-11-04 14:45:58 +00:00
parent 3bbe7a934d
commit 79dba8ad2b

View file

@ -1,4 +1,5 @@
#include "multiboot.h"
#include "paging.h"
#include <kernelmq/info.h>
#include <kernelmq/stdlib.h>
@ -34,5 +35,10 @@ const struct KernelMQ_Info *init(unsigned long multiboot_magic, unsigned long mu
kinfo.kernel_and_modules_total_size = kinfo.kernel_size + kinfo.modules_total_size;
paging_clear();
paging_identity(&kinfo);
/* kinfo.freepde_start = */ paging_mapkernel(&kinfo);
paging_load();
return &kinfo;
}