Memory: move IsValidVirtualAddress into class

This commit is contained in:
Weiyi Wang 2018-11-21 12:30:07 -05:00
parent 296c458e0e
commit 405218c3a7
6 changed files with 27 additions and 26 deletions

View file

@ -185,7 +185,7 @@ void Write(const VAddr vaddr, const T data) {
}
}
bool IsValidVirtualAddress(const Kernel::Process& process, const VAddr vaddr) {
bool MemorySystem::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];