hle: kernel: k_code_memory: Fix usage of KPageLinkedList to use physical address space.
This commit is contained in:
parent
5b667f5e52
commit
94543f129e
|
@ -28,7 +28,8 @@ ResultCode KCodeMemory::Initialize(Core::DeviceMemory& device_memory, VAddr addr
|
||||||
auto& page_table = m_owner->PageTable();
|
auto& page_table = m_owner->PageTable();
|
||||||
|
|
||||||
// Construct the page group.
|
// Construct the page group.
|
||||||
m_page_group = KPageLinkedList(addr, Common::DivideUp(size, PageSize));
|
m_page_group =
|
||||||
|
KPageLinkedList(page_table.GetPhysicalAddr(addr), Common::DivideUp(size, PageSize));
|
||||||
|
|
||||||
// Lock the memory.
|
// Lock the memory.
|
||||||
R_TRY(page_table.LockForCodeMemory(addr, size))
|
R_TRY(page_table.LockForCodeMemory(addr, size))
|
||||||
|
|
Loading…
Reference in New Issue