memory: Add GetCurrentPageTable/SetCurrentPageTable
Don't expose Memory::current_page_table as a global.
This commit is contained in:
parent
93930a966f
commit
c02bbb7030
7 changed files with 19 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue