2022-10-13 17:19:51 +00:00
|
|
|
#pragma once
|
|
|
|
#include "memory/Paging.h"
|
|
|
|
|
|
|
|
struct AddressSpace
|
|
|
|
{
|
|
|
|
static AddressSpace create();
|
|
|
|
|
|
|
|
void destroy();
|
|
|
|
|
2022-10-17 16:43:35 +00:00
|
|
|
void clear();
|
|
|
|
|
2022-10-14 16:17:57 +00:00
|
|
|
AddressSpace clone();
|
2022-10-14 14:46:00 +00:00
|
|
|
|
2022-10-13 17:19:51 +00:00
|
|
|
PageTable* get_pml4()
|
|
|
|
{
|
|
|
|
return m_pml4;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
PageTable* m_pml4;
|
|
|
|
};
|