mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
memory: Add GetCurrentPageTable/SetCurrentPageTable
Don't expose Memory::current_page_table as a global.
This commit is contained in:
parent
4c4807a251
commit
6b8ad273fc
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