mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 07:37:45 +00:00
kernel: transfer_memory: Properly reserve and reset memory region.
This commit is contained in:
parent
a0400ebc19
commit
9ffdef96d9
5 changed files with 116 additions and 40 deletions
|
@ -544,7 +544,8 @@ MemoryInfo VMManager::QueryMemory(VAddr address) const {
|
|||
|
||||
ResultCode VMManager::SetMemoryAttribute(VAddr address, u64 size, MemoryAttribute mask,
|
||||
MemoryAttribute attribute) {
|
||||
constexpr auto ignore_mask = MemoryAttribute::Uncached | MemoryAttribute::DeviceMapped;
|
||||
constexpr auto ignore_mask =
|
||||
MemoryAttribute::Uncached | MemoryAttribute::DeviceMapped | MemoryAttribute::Locked;
|
||||
constexpr auto attribute_mask = ~ignore_mask;
|
||||
|
||||
const auto result = CheckRangeState(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue