Luna/kernel/include/memory/AddressSpace.h
apio 26211bd49f It (almost) works now
The only thing doing weird stuff is exec(), so that's commented out and throws ENOSYS right now.

But we have two user tasks running in parallel, isolated from each other!
2022-10-14 16:46:00 +02:00

19 lines
236 B
C++

#pragma once
#include "memory/Paging.h"
struct AddressSpace
{
static AddressSpace create();
void destroy();
void reset();
PageTable* get_pml4()
{
return m_pml4;
}
private:
PageTable* m_pml4;
};