diff options
| author | Mary <me@thog.eu> | 2021-06-23 21:52:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 21:52:11 +0200 |
| commit | 0644db02ad5d800fee4a3f7caad3cd0c8f5fbcdc (patch) | |
| tree | 286ea3bdb380dae307f8bb036ff65111fc11232d /Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs | |
| parent | 50ba233ac628ffb9661ea2bda2cda216d18e81c1 (diff) | |
kernel: Implement MapTransferMemory and UnmapTransferMemory (#2386)
Based on my reversing of kernel 12.0.0
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs index 97915d14..1875facb 100644 --- a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs +++ b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs @@ -135,6 +135,16 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall return _syscall.CreateTransferMemory(address, size, permission, out handle); } + public KernelResult MapTransferMemory32([R(0)] int handle, [R(1)] uint address, [R(2)] uint size, [R(3)] KMemoryPermission permission) + { + return _syscall.MapTransferMemory(handle, address, size, permission); + } + + public KernelResult UnmapTransferMemory32([R(0)] int handle, [R(1)] uint address, [R(2)] uint size) + { + return _syscall.UnmapTransferMemory(handle, address, size); + } + public KernelResult MapPhysicalMemory32([R(0)] uint address, [R(1)] uint size) { return _syscall.MapPhysicalMemory(address, size); |
