mirror of
https://github.com/tailix/kernel.git
synced 2024-12-11 11:35:39 -05:00
Prepare page dir in "init"
This commit is contained in:
parent
3bbe7a934d
commit
79dba8ad2b
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue