memory: Add GetCurrentPageTable/SetCurrentPageTable

Don't expose Memory::current_page_table as a global.
This commit is contained in:
MerryMage 2017-09-24 22:42:42 +01:00
parent 93930a966f
commit c02bbb7030
7 changed files with 19 additions and 13 deletions

View file

@ -182,7 +182,8 @@ enum : VAddr {
};
/// Currently active page table
extern PageTable* current_page_table;
void SetCurrentPageTable(PageTable* page_table);
PageTable* GetCurrentPageTable();
bool IsValidVirtualAddress(const VAddr addr);
bool IsValidPhysicalAddress(const PAddr addr);