Kernel: Replace Paging{.h,.cpp} with better MMU{.h,.cpp}
This commit is contained in:
20
kernel/include/kernel/MMU.h
Normal file
20
kernel/include/kernel/MMU.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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);
|
||||
|
||||
private:
|
||||
MMU();
|
||||
|
||||
private:
|
||||
uint64_t* m_page_descriptor_pointer_table;
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Paging
|
||||
{
|
||||
|
||||
void Initialize();
|
||||
|
||||
void MapPage(uintptr_t address);
|
||||
void MapPages(uintptr_t address, size_t size);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user