24 lines
625 B
C
24 lines
625 B
C
//
|
|
// 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) {
|
|
} |