Memory: IsValidVirtualAddress can be global

This commit is contained in:
Weiyi Wang 2018-11-21 16:51:41 -05:00
parent 42edab01d9
commit c6b3186475
6 changed files with 27 additions and 27 deletions

View file

@ -28,7 +28,7 @@ void MemorySystem::SetCurrentPageTable(PageTable* page_table) {
}
}
PageTable* MemorySystem::GetCurrentPageTable() {
PageTable* MemorySystem::GetCurrentPageTable() const {
return current_page_table;
}
@ -173,7 +173,7 @@ void MemorySystem::Write(const VAddr vaddr, const T data) {
}
}
bool MemorySystem::IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr) {
bool IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr) {
auto& page_table = process.vm_manager.page_table;
const u8* page_pointer = page_table.pointers[vaddr >> PAGE_BITS];