banan-os/kernel/include/kernel/MMU.h

24 lines
350 B
C++

#pragma once
#include <stddef.h>
#include <stdint.h>
class MMU
{
public:
static void Intialize();
static MMU& Get();
void AllocatePage(uintptr_t);
void AllocateRange(uintptr_t, ptrdiff_t);
void UnAllocatePage(uintptr_t);
void UnAllocateRange(uintptr_t, ptrdiff_t);
private:
MMU();
private:
uint64_t* m_page_descriptor_pointer_table;
};