Luna/kernel/include/memory/AddressSpace.h
apio 64f5078494 Kernel, libc: Implement fork()
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.
2022-10-17 18:43:35 +02:00

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;
};