apio
64f5078494
This time for real. Also, add a new per-user-task virtual address allocator (UserHeap), so that mmap'ed pages are in user range and can be copied.
21 lines
263 B
C++
21 lines
263 B
C++
#pragma once
|
|
#include "memory/Paging.h"
|
|
|
|
struct AddressSpace
|
|
{
|
|
static AddressSpace create();
|
|
|
|
void destroy();
|
|
|
|
void clear();
|
|
|
|
AddressSpace clone();
|
|
|
|
PageTable* get_pml4()
|
|
{
|
|
return m_pml4;
|
|
}
|
|
|
|
private:
|
|
PageTable* m_pml4;
|
|
}; |