mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-02 05:17:52 +00:00
core: hle: kernel: KPageTable: ReserveTransferMemory: Various cleanup.
This commit is contained in:
parent
0cee5e1af8
commit
ee25e0a40b
1 changed files with 6 additions and 6 deletions
|
@ -782,11 +782,11 @@ ResultCode KPageTable::ReserveTransferMemory(VAddr addr, std::size_t size, KMemo
|
||||||
KMemoryState state{};
|
KMemoryState state{};
|
||||||
KMemoryAttribute attribute{};
|
KMemoryAttribute attribute{};
|
||||||
|
|
||||||
CASCADE_CODE(CheckMemoryState(
|
R_TRY(CheckMemoryState(&state, nullptr, &attribute, nullptr, addr, size,
|
||||||
&state, nullptr, &attribute, nullptr, addr, size,
|
|
||||||
KMemoryState::FlagCanTransfer | KMemoryState::FlagReferenceCounted,
|
KMemoryState::FlagCanTransfer | KMemoryState::FlagReferenceCounted,
|
||||||
KMemoryState::FlagCanTransfer | KMemoryState::FlagReferenceCounted, KMemoryPermission::All,
|
KMemoryState::FlagCanTransfer | KMemoryState::FlagReferenceCounted,
|
||||||
KMemoryPermission::UserReadWrite, KMemoryAttribute::Mask, KMemoryAttribute::None,
|
KMemoryPermission::All, KMemoryPermission::UserReadWrite,
|
||||||
|
KMemoryAttribute::Mask, KMemoryAttribute::None,
|
||||||
KMemoryAttribute::IpcAndDeviceMapped));
|
KMemoryAttribute::IpcAndDeviceMapped));
|
||||||
|
|
||||||
block_manager->Update(addr, size / PageSize, state, perm, attribute | KMemoryAttribute::Locked);
|
block_manager->Update(addr, size / PageSize, state, perm, attribute | KMemoryAttribute::Locked);
|
||||||
|
|
Loading…
Reference in a new issue