memory: Reorder parameters of CopyBlock to a more sensible order
* Also implement CopyBlock variants in terms of each other
This commit is contained in:
parent
0ec45f694c
commit
065d3ce063
3 changed files with 9 additions and 54 deletions
|
@ -154,8 +154,10 @@ ResultCode TranslateCommandBuffer(Memory::MemorySystem& memory, std::shared_ptr<
|
|||
|
||||
if (permissions != IPC::MappedBufferPermissions::R) {
|
||||
// Copy the modified buffer back into the target process
|
||||
memory.CopyBlock(*src_process, *dst_process, found->target_address,
|
||||
found->source_address, size);
|
||||
// NOTE: As this is a reply the "source" is the destination and the
|
||||
// "target" is the source.
|
||||
memory.CopyBlock(*dst_process, *src_process, found->source_address,
|
||||
found->target_address, size);
|
||||
}
|
||||
|
||||
VAddr prev_reserve = page_start - Memory::PAGE_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue