diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-23 15:00:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 15:00:19 +0100 |
commit | c41a4baf06efe935f08331bc6f8ff6d80dc088f5 (patch) | |
tree | a6580d41bd440b240b2f60db38fdeec60fca2eff /src/core/hle/kernel/svc/svc_shared_memory.cpp | |
parent | Merge pull request #9962 from Kelebek1/disable_srgb (diff) | |
parent | kernel: use KTypedAddress for addresses (diff) | |
download | yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar.gz yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar.bz2 yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar.lz yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar.xz yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.tar.zst yuzu-c41a4baf06efe935f08331bc6f8ff6d80dc088f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc/svc_shared_memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc/svc_shared_memory.cpp b/src/core/hle/kernel/svc/svc_shared_memory.cpp index 40d878f17..a698596aa 100644 --- a/src/core/hle/kernel/svc/svc_shared_memory.cpp +++ b/src/core/hle/kernel/svc/svc_shared_memory.cpp @@ -26,7 +26,7 @@ constexpr bool IsValidSharedMemoryPermission(MemoryPermission perm) { } // namespace -Result MapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address, u64 size, +Result MapSharedMemory(Core::System& system, Handle shmem_handle, u64 address, u64 size, Svc::MemoryPermission map_perm) { LOG_TRACE(Kernel_SVC, "called, shared_memory_handle=0x{:X}, addr=0x{:X}, size=0x{:X}, permissions=0x{:08X}", @@ -64,7 +64,7 @@ Result MapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address, R_RETURN(shmem->Map(process, address, size, map_perm)); } -Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address, u64 size) { +Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, u64 address, u64 size) { // Validate the address/size. R_UNLESS(Common::IsAligned(address, PageSize), ResultInvalidAddress); R_UNLESS(Common::IsAligned(size, PageSize), ResultInvalidSize); |