mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-18 11:30:59 +01:00
Merge pull request #7173 from Morph1984/invalidate-unmap
KPageTable: Perform ranged invalidation when unmapping code memory
This commit is contained in:
commit
4e81b799f1
1 changed files with 2 additions and 0 deletions
|
@ -363,6 +363,8 @@ ResultCode KPageTable::UnmapProcessCodeMemory(VAddr dst_addr, VAddr src_addr, st
|
||||||
block_manager->Update(src_addr, num_pages, KMemoryState::Normal,
|
block_manager->Update(src_addr, num_pages, KMemoryState::Normal,
|
||||||
KMemoryPermission::ReadAndWrite);
|
KMemoryPermission::ReadAndWrite);
|
||||||
|
|
||||||
|
system.InvalidateCpuInstructionCacheRange(dst_addr, size);
|
||||||
|
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue