mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
process: MirrorMemory should use MemoryState::Mapped.
This commit is contained in:
parent
e9a857ce82
commit
cc6f22e0e4
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ ResultCode Process::MirrorMemory(VAddr dst_addr, VAddr src_addr, u64 size) {
|
||||||
|
|
||||||
CASCADE_RESULT(auto new_vma,
|
CASCADE_RESULT(auto new_vma,
|
||||||
vm_manager.MapMemoryBlock(dst_addr, backing_block, backing_block_offset, size,
|
vm_manager.MapMemoryBlock(dst_addr, backing_block, backing_block_offset, size,
|
||||||
vma->second.meminfo_state));
|
MemoryState::Mapped));
|
||||||
// Protect mirror with permissions from old region
|
// Protect mirror with permissions from old region
|
||||||
vm_manager.Reprotect(new_vma, vma->second.permissions);
|
vm_manager.Reprotect(new_vma, vma->second.permissions);
|
||||||
// Remove permissions from old region
|
// Remove permissions from old region
|
||||||
|
|
Loading…
Reference in a new issue