mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-13 14:44:23 -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
|
@ -35,8 +35,9 @@ namespace ams::kern {
|
|||
/* Clear the memory. */
|
||||
for (const auto &block : GetReference(m_page_group)) {
|
||||
/* Clear and store cache. */
|
||||
std::memset(GetVoidPointer(block.GetAddress()), 0xFF, block.GetSize());
|
||||
cpu::StoreDataCache(GetVoidPointer(block.GetAddress()), block.GetSize());
|
||||
void * const block_address = GetVoidPointer(KMemoryLayout::GetLinearVirtualAddress(block.GetAddress()));
|
||||
std::memset(block_address, 0xFF, block.GetSize());
|
||||
cpu::StoreDataCache(block_address, block.GetSize());
|
||||
}
|
||||
|
||||
/* Set remaining tracking members. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue