feat: start of paging setup
This commit is contained in:
24
kernel/mem/vmm.c
Normal file
24
kernel/mem/vmm.c
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by rick on 17-10-21.
|
||||
//
|
||||
#include <sys/types.h>
|
||||
#include <myke/libk/libk.h>
|
||||
#include <myke/mem/mem.h>
|
||||
#include <myke/mem/vmm.h>
|
||||
|
||||
void vmm_init(multiboot_info_t *multiboot_info) {
|
||||
if (!(multiboot_info->flags & MULTIBOOT_INFO_MEM_MAP)) {
|
||||
k_panics("No MMAP info available");
|
||||
}
|
||||
mmap_init_multiboot((struct multiboot_mmap_entry *) multiboot_info->mmap_addr,
|
||||
multiboot_info->mmap_length / sizeof(struct multiboot_mmap_entry));
|
||||
}
|
||||
|
||||
void* vmm_map_physical(uintptr_t physical) {
|
||||
}
|
||||
|
||||
void* vmm_unmap_physical(uintptr_t physical) {
|
||||
}
|
||||
|
||||
void* vmm_unmap_virtual(uintptr_t virtual) {
|
||||
}
|
||||
Reference in New Issue
Block a user