diff options
| author | 2018-11-20 16:13:30 -0800 | |
|---|---|---|
| committer | 2018-11-20 16:13:30 -0800 | |
| commit | aa7e53ab5c21be5960c8c4430a493e0016de6679 (patch) | |
| tree | 8a1889793c810770c9d7bb84be085f8296a4c502 /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #1733 from lioncash/ldr (diff) | |
| parent | kernel/shared_memory: Make Map() and Unmap() take the target process by refer... (diff) | |
| download | yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.gz yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.xz yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.zip | |
Merge pull request #1734 from lioncash/shared
kernel/shared_memory: Make data members private, plus minor interface changes
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 51c367de7..b8b6b4d49 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -789,7 +789,7 @@ static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 s | |||
| 789 | return ERR_INVALID_MEMORY_RANGE; | 789 | return ERR_INVALID_MEMORY_RANGE; |
| 790 | } | 790 | } |
| 791 | 791 | ||
| 792 | return shared_memory->Map(current_process, addr, permissions_type, MemoryPermission::DontCare); | 792 | return shared_memory->Map(*current_process, addr, permissions_type, MemoryPermission::DontCare); |
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | static ResultCode UnmapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size) { | 795 | static ResultCode UnmapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size) { |
| @@ -819,7 +819,7 @@ static ResultCode UnmapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 | |||
| 819 | return ERR_INVALID_MEMORY_RANGE; | 819 | return ERR_INVALID_MEMORY_RANGE; |
| 820 | } | 820 | } |
| 821 | 821 | ||
| 822 | return shared_memory->Unmap(current_process, addr); | 822 | return shared_memory->Unmap(*current_process, addr); |
| 823 | } | 823 | } |
| 824 | 824 | ||
| 825 | /// Query process memory | 825 | /// Query process memory |