mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -04:00
kern: KMemoryManager/KPageGroup use physical addresses instead of virtual, now
This commit is contained in:
parent
2c4bd44d7e
commit
2f2c36b22b
17 changed files with 305 additions and 260 deletions
libraries/libmesosphere/source
|
@ -51,7 +51,7 @@ namespace ams::kern {
|
|||
|
||||
/* Clear all pages in the memory. */
|
||||
for (const auto &block : m_page_group) {
|
||||
std::memset(GetVoidPointer(block.GetAddress()), 0, block.GetSize());
|
||||
std::memset(GetVoidPointer(KMemoryLayout::GetLinearVirtualAddress(block.GetAddress())), 0, block.GetSize());
|
||||
}
|
||||
|
||||
return ResultSuccess();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue