diff options
| author | 2022-03-26 01:35:37 -0700 | |
|---|---|---|
| committer | 2022-03-26 01:35:37 -0700 | |
| commit | 1b3dba329aaf4bcaecefb8edde504f5087727689 (patch) | |
| tree | 9f7254817b314d502b6a8a54df6172ede2e84d39 /src/core/hle/kernel/svc.cpp | |
| parent | hle: kernel: svc: CreateCodeMemory: Remove log of 'out' host pointer. (diff) | |
| download | yuzu-1b3dba329aaf4bcaecefb8edde504f5087727689.tar.gz yuzu-1b3dba329aaf4bcaecefb8edde504f5087727689.tar.xz yuzu-1b3dba329aaf4bcaecefb8edde504f5087727689.zip | |
hle: kernel: svc: MapProcessMemory: Fix usage of KPageLinkedList to use physical address space.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 4a2115e2d..976d63234 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1362,8 +1362,11 @@ static ResultCode MapProcessMemory(Core::System& system, VAddr dst_address, Hand | |||
| 1362 | ResultInvalidMemoryRegion); | 1362 | ResultInvalidMemoryRegion); |
| 1363 | 1363 | ||
| 1364 | // Create a new page group. | 1364 | // Create a new page group. |
| 1365 | KMemoryInfo kBlockInfo = dst_pt.QueryInfo(dst_address); | 1365 | KPageLinkedList pg; |
| 1366 | KPageLinkedList pg(kBlockInfo.GetAddress(), kBlockInfo.GetNumPages()); | 1366 | R_TRY(src_pt.MakeAndOpenPageGroup( |
| 1367 | std::addressof(pg), src_address, size / PageSize, KMemoryState::FlagCanMapProcess, | ||
| 1368 | KMemoryState::FlagCanMapProcess, KMemoryPermission::None, KMemoryPermission::None, | ||
| 1369 | KMemoryAttribute::All, KMemoryAttribute::None)); | ||
| 1367 | 1370 | ||
| 1368 | // Map the group. | 1371 | // Map the group. |
| 1369 | R_TRY(dst_pt.MapPages(dst_address, pg, KMemoryState::SharedCode, | 1372 | R_TRY(dst_pt.MapPages(dst_address, pg, KMemoryState::SharedCode, |