This commit is contained in:
Baptiste Wicht 2014-03-10 14:24:59 +01:00
parent 880e411be2
commit 28dcfd23fc
2 changed files with 5 additions and 9 deletions

View File

@ -20,14 +20,6 @@ struct process_t;
namespace paging {
//TODO Probably some of it could be moved in the source file
typedef uint64_t* page_entry;
typedef page_entry* pt_t;
typedef pt_t* pd_t;
typedef pd_t* pdpt_t;
typedef pdpt_t* pml4t_t;
//The size of page in memory
constexpr const size_t PAGE_SIZE = 4096;

View File

@ -21,7 +21,11 @@
namespace {
using namespace paging;
typedef uint64_t* page_entry;
typedef page_entry* pt_t;
typedef pt_t* pd_t;
typedef pd_t* pdpt_t;
typedef pdpt_t* pml4t_t;
//The physical offsets of the structures
size_t physical_pml4t_start;