Luna/kernel/include/memory/AddressSpace.h

22 lines
297 B
C
Raw Normal View History

2022-10-13 17:19:51 +00:00
#pragma once
#include "memory/Paging.h"
2022-11-12 10:30:28 +00:00
#include "utils/Result.h"
2022-10-13 17:19:51 +00:00
struct AddressSpace
{
2022-11-12 10:30:28 +00:00
static Result<AddressSpace> create();
2022-10-13 17:19:51 +00:00
void destroy();
void clear();
AddressSpace clone();
2022-10-13 17:19:51 +00:00
PageTable* get_pml4()
{
return m_pml4;
}
private:
PageTable* m_pml4;
};