Kernel: MMU now takes flags when allocating pages
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
|
||||
class MMU
|
||||
{
|
||||
public:
|
||||
enum Flags : uint8_t
|
||||
{
|
||||
Present = 1,
|
||||
ReadWrite = 2,
|
||||
UserSupervisor = 4,
|
||||
};
|
||||
|
||||
public:
|
||||
static void intialize();
|
||||
static MMU& get();
|
||||
@@ -12,8 +20,8 @@ public:
|
||||
MMU();
|
||||
~MMU();
|
||||
|
||||
void allocate_page(uintptr_t);
|
||||
void allocate_range(uintptr_t, ptrdiff_t);
|
||||
void allocate_page(uintptr_t, uint8_t);
|
||||
void allocate_range(uintptr_t, ptrdiff_t, uint8_t);
|
||||
|
||||
void unallocate_page(uintptr_t);
|
||||
void unallocate_range(uintptr_t, ptrdiff_t);
|
||||
|
||||
Reference in New Issue
Block a user