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/Syscall64.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/Syscall64.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall64.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall64.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall64.cs index 07ca4aae..c22397cf 100644 --- a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall64.cs +++ b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall64.cs @@ -152,6 +152,16 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall return _syscall.CreateTransferMemory(address, size, permission, out handle); } + public KernelResult MapTransferMemory64([R(0)] int handle, [R(1)] ulong address, [R(2)] ulong size, [R(3)] KMemoryPermission permission) + { + return _syscall.MapTransferMemory(handle, address, size, permission); + } + + public KernelResult UnmapTransferMemory64([R(0)] int handle, [R(1)] ulong address, [R(2)] ulong size) + { + return _syscall.UnmapTransferMemory(handle, address, size); + } + public KernelResult MapPhysicalMemory64([R(0)] ulong address, [R(1)] ulong size) { return _syscall.MapPhysicalMemory(address, size); |
