2020-05-03 23:41:29 -04:00
|
|
|
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
|
|
|
using Ryujinx.HLE.HOS.Kernel.Memory;
|
|
|
|
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|
|
|
|
{
|
|
|
|
|
class Syscall64
|
|
|
|
|
{
|
|
|
|
|
private readonly Syscall _syscall;
|
|
|
|
|
|
|
|
|
|
public Syscall64(Syscall syscall)
|
|
|
|
|
{
|
|
|
|
|
_syscall = syscall;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IPC
|
|
|
|
|
|
|
|
|
|
public KernelResult ConnectToNamedPort64([R(1)] ulong namePtr, [R(1)] out int handle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.ConnectToNamedPort(out handle, namePtr);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SendSyncRequest64([R(0)] int handle)
|
|
|
|
|
{
|
2020-12-01 18:23:43 -05:00
|
|
|
|
return _syscall.SendSyncRequest(handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-07-17 00:19:07 -04:00
|
|
|
|
public KernelResult SendSyncRequestWithUserBuffer64([R(0)] ulong messagePtr, [R(1)] ulong messageSize, [R(2)] int handle)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
2020-12-01 18:23:43 -05:00
|
|
|
|
return _syscall.SendSyncRequestWithUserBuffer(messagePtr, messageSize, handle);
|
2020-07-17 00:19:07 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SendAsyncRequestWithUserBuffer64(
|
|
|
|
|
[R(1)] ulong messagePtr,
|
|
|
|
|
[R(2)] ulong messageSize,
|
|
|
|
|
[R(3)] int handle,
|
|
|
|
|
[R(1)] out int doneEventHandle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.SendAsyncRequestWithUserBuffer(out doneEventHandle, messagePtr, messageSize, handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CreateSession64(
|
|
|
|
|
[R(2)] bool isLight,
|
|
|
|
|
[R(3)] ulong namePtr,
|
|
|
|
|
[R(1)] out int serverSessionHandle,
|
|
|
|
|
[R(2)] out int clientSessionHandle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.CreateSession(out serverSessionHandle, out clientSessionHandle, isLight, namePtr);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult AcceptSession64([R(1)] int portHandle, [R(1)] out int sessionHandle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.AcceptSession(out sessionHandle, portHandle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ReplyAndReceive64(
|
|
|
|
|
[R(1)] ulong handlesPtr,
|
|
|
|
|
[R(2)] int handlesCount,
|
|
|
|
|
[R(3)] int replyTargetHandle,
|
|
|
|
|
[R(4)] long timeout,
|
|
|
|
|
[R(1)] out int handleIndex)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.ReplyAndReceive(out handleIndex, handlesPtr, handlesCount, replyTargetHandle, timeout);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-07-17 00:19:07 -04:00
|
|
|
|
public KernelResult ReplyAndReceiveWithUserBuffer64(
|
|
|
|
|
[R(1)] ulong messagePtr,
|
|
|
|
|
[R(2)] ulong messageSize,
|
|
|
|
|
[R(3)] ulong handlesPtr,
|
|
|
|
|
[R(4)] int handlesCount,
|
|
|
|
|
[R(5)] int replyTargetHandle,
|
|
|
|
|
[R(6)] long timeout,
|
|
|
|
|
[R(1)] out int handleIndex)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.ReplyAndReceiveWithUserBuffer(
|
2022-01-29 16:18:03 -05:00
|
|
|
|
out handleIndex,
|
2020-07-17 00:19:07 -04:00
|
|
|
|
handlesPtr,
|
|
|
|
|
messagePtr,
|
|
|
|
|
messageSize,
|
|
|
|
|
handlesCount,
|
|
|
|
|
replyTargetHandle,
|
2022-01-29 16:18:03 -05:00
|
|
|
|
timeout);
|
2020-07-17 00:19:07 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-05-03 23:41:29 -04:00
|
|
|
|
public KernelResult CreatePort64(
|
|
|
|
|
[R(2)] int maxSessions,
|
|
|
|
|
[R(3)] bool isLight,
|
|
|
|
|
[R(4)] ulong namePtr,
|
|
|
|
|
[R(1)] out int serverPortHandle,
|
|
|
|
|
[R(2)] out int clientPortHandle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.CreatePort(out serverPortHandle, out clientPortHandle, maxSessions, isLight, namePtr);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ManageNamedPort64([R(1)] ulong namePtr, [R(2)] int maxSessions, [R(1)] out int handle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.ManageNamedPort(out handle, namePtr, maxSessions);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ConnectToPort64([R(1)] int clientPortHandle, [R(1)] out int clientSessionHandle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.ConnectToPort(out clientSessionHandle, clientPortHandle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Memory
|
|
|
|
|
|
2022-01-29 16:18:03 -05:00
|
|
|
|
public KernelResult SetHeapSize64([R(1)] ulong size, [R(1)] out ulong address)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.SetHeapSize(out address, size);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2021-10-23 19:24:49 -04:00
|
|
|
|
public KernelResult SetMemoryPermission64(
|
2022-01-29 16:18:03 -05:00
|
|
|
|
[R(0)] ulong address,
|
2021-10-23 19:24:49 -04:00
|
|
|
|
[R(1)] ulong size,
|
|
|
|
|
[R(2)] KMemoryPermission permission)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.SetMemoryPermission(address, size, permission);
|
2021-10-23 19:24:49 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-05-03 23:41:29 -04:00
|
|
|
|
public KernelResult SetMemoryAttribute64(
|
2022-01-29 16:18:03 -05:00
|
|
|
|
[R(0)] ulong address,
|
2020-05-03 23:41:29 -04:00
|
|
|
|
[R(1)] ulong size,
|
|
|
|
|
[R(2)] MemoryAttribute attributeMask,
|
|
|
|
|
[R(3)] MemoryAttribute attributeValue)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.SetMemoryAttribute(address, size, attributeMask, attributeValue);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult MapMemory64([R(0)] ulong dst, [R(1)] ulong src, [R(2)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.MapMemory(dst, src, size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult UnmapMemory64([R(0)] ulong dst, [R(1)] ulong src, [R(2)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.UnmapMemory(dst, src, size);
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-29 16:18:03 -05:00
|
|
|
|
public KernelResult QueryMemory64([R(0)] ulong infoPtr, [R(2)] ulong address, [R(1)] out ulong pageInfo)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.QueryMemory(infoPtr, out pageInfo, address);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-01 18:23:43 -05:00
|
|
|
|
public KernelResult MapSharedMemory64([R(0)] int handle, [R(1)] ulong address, [R(2)] ulong size, [R(3)] KMemoryPermission permission)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
|
|
|
|
return _syscall.MapSharedMemory(handle, address, size, permission);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult UnmapSharedMemory64([R(0)] int handle, [R(1)] ulong address, [R(2)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.UnmapSharedMemory(handle, address, size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CreateTransferMemory64(
|
|
|
|
|
[R(1)] ulong address,
|
|
|
|
|
[R(2)] ulong size,
|
2020-12-01 18:23:43 -05:00
|
|
|
|
[R(3)] KMemoryPermission permission,
|
2020-05-03 23:41:29 -04:00
|
|
|
|
[R(1)] out int handle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.CreateTransferMemory(out handle, address, size, permission);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2021-06-23 15:52:11 -04:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-03 23:41:29 -04:00
|
|
|
|
public KernelResult MapPhysicalMemory64([R(0)] ulong address, [R(1)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.MapPhysicalMemory(address, size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult UnmapPhysicalMemory64([R(0)] ulong address, [R(1)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.UnmapPhysicalMemory(address, size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult MapProcessCodeMemory64([R(0)] int handle, [R(1)] ulong dst, [R(2)] ulong src, [R(3)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.MapProcessCodeMemory(handle, dst, src, size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult UnmapProcessCodeMemory64([R(0)] int handle, [R(1)] ulong dst, [R(2)] ulong src, [R(3)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.UnmapProcessCodeMemory(handle, dst, src, size);
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-01 18:23:43 -05:00
|
|
|
|
public KernelResult SetProcessMemoryPermission64([R(0)] int handle, [R(1)] ulong src, [R(2)] ulong size, [R(3)] KMemoryPermission permission)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
|
|
|
|
return _syscall.SetProcessMemoryPermission(handle, src, size, permission);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// System
|
|
|
|
|
|
|
|
|
|
public void ExitProcess64()
|
|
|
|
|
{
|
|
|
|
|
_syscall.ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult TerminateProcess64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.TerminateProcess(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SignalEvent64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SignalEvent(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ClearEvent64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.ClearEvent(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CloseHandle64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.CloseHandle(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ResetSignal64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.ResetSignal(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ulong GetSystemTick64()
|
|
|
|
|
{
|
|
|
|
|
return _syscall.GetSystemTick();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetProcessId64([R(1)] int handle, [R(1)] out long pid)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetProcessId(out pid, handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Break64([R(0)] ulong reason, [R(1)] ulong x1, [R(2)] ulong info)
|
|
|
|
|
{
|
|
|
|
|
_syscall.Break(reason);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OutputDebugString64([R(0)] ulong strPtr, [R(1)] ulong size)
|
|
|
|
|
{
|
|
|
|
|
_syscall.OutputDebugString(strPtr, size);
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-29 16:18:03 -05:00
|
|
|
|
public KernelResult GetInfo64([R(1)] InfoType id, [R(2)] int handle, [R(3)] long subId, [R(1)] out ulong value)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetInfo(out value, id, handle, subId);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CreateEvent64([R(1)] out int wEventHandle, [R(2)] out int rEventHandle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.CreateEvent(out wEventHandle, out rEventHandle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetProcessList64([R(1)] ulong address, [R(2)] int maxCount, [R(1)] out int count)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetProcessList(out count, address, maxCount);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetSystemInfo64([R(1)] uint id, [R(2)] int handle, [R(3)] long subId, [R(1)] out long value)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetSystemInfo(out value, id, handle, subId);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2021-10-23 19:40:13 -04:00
|
|
|
|
public KernelResult GetResourceLimitLimitValue64([R(1)] int handle, [R(2)] LimitableResource resource, [R(1)] out long limitValue)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetResourceLimitLimitValue(out limitValue, handle, resource);
|
2021-10-23 19:40:13 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetResourceLimitCurrentValue64([R(1)] int handle, [R(2)] LimitableResource resource, [R(1)] out long limitValue)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetResourceLimitCurrentValue(out limitValue, handle, resource);
|
2021-10-23 19:40:13 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetResourceLimitPeakValue64([R(1)] int handle, [R(2)] LimitableResource resource, [R(1)] out long peak)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetResourceLimitPeakValue(out peak, handle, resource);
|
2021-10-23 19:40:13 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CreateResourceLimit64([R(1)] out int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.CreateResourceLimit(out handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SetResourceLimitLimitValue64([R(0)] int handle, [R(1)] LimitableResource resource, [R(2)] long limitValue)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SetResourceLimitLimitValue(handle, resource, limitValue);
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-03 23:41:29 -04:00
|
|
|
|
// Thread
|
|
|
|
|
|
|
|
|
|
public KernelResult CreateThread64(
|
|
|
|
|
[R(1)] ulong entrypoint,
|
|
|
|
|
[R(2)] ulong argsPtr,
|
|
|
|
|
[R(3)] ulong stackTop,
|
|
|
|
|
[R(4)] int priority,
|
|
|
|
|
[R(5)] int cpuCore,
|
|
|
|
|
[R(1)] out int handle)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.CreateThread(out handle, entrypoint, argsPtr, stackTop, priority, cpuCore);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult StartThread64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.StartThread(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ExitThread64()
|
|
|
|
|
{
|
|
|
|
|
_syscall.ExitThread();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SleepThread64([R(0)] long timeout)
|
|
|
|
|
{
|
|
|
|
|
_syscall.SleepThread(timeout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetThreadPriority64([R(1)] int handle, [R(1)] out int priority)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetThreadPriority(out priority, handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SetThreadPriority64([R(0)] int handle, [R(1)] int priority)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SetThreadPriority(handle, priority);
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-29 16:18:03 -05:00
|
|
|
|
public KernelResult GetThreadCoreMask64([R(2)] int handle, [R(1)] out int preferredCore, [R(2)] out ulong affinityMask)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetThreadCoreMask(out preferredCore, out affinityMask, handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-29 16:18:03 -05:00
|
|
|
|
public KernelResult SetThreadCoreMask64([R(0)] int handle, [R(1)] int preferredCore, [R(2)] ulong affinityMask)
|
2020-05-03 23:41:29 -04:00
|
|
|
|
{
|
|
|
|
|
return _syscall.SetThreadCoreMask(handle, preferredCore, affinityMask);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int GetCurrentProcessorNumber64()
|
|
|
|
|
{
|
|
|
|
|
return _syscall.GetCurrentProcessorNumber();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetThreadId64([R(1)] int handle, [R(1)] out long threadUid)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.GetThreadId(out threadUid, handle);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SetThreadActivity64([R(0)] int handle, [R(1)] bool pause)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SetThreadActivity(handle, pause);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult GetThreadContext364([R(0)] ulong address, [R(1)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.GetThreadContext3(address, handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Thread synchronization
|
|
|
|
|
|
|
|
|
|
public KernelResult WaitSynchronization64([R(1)] ulong handlesPtr, [R(2)] int handlesCount, [R(3)] long timeout, [R(1)] out int handleIndex)
|
|
|
|
|
{
|
2022-01-29 16:18:03 -05:00
|
|
|
|
return _syscall.WaitSynchronization(out handleIndex, handlesPtr, handlesCount, timeout);
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult CancelSynchronization64([R(0)] int handle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.CancelSynchronization(handle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ArbitrateLock64([R(0)] int ownerHandle, [R(1)] ulong mutexAddress, [R(2)] int requesterHandle)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.ArbitrateLock(ownerHandle, mutexAddress, requesterHandle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult ArbitrateUnlock64([R(0)] ulong mutexAddress)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.ArbitrateUnlock(mutexAddress);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult WaitProcessWideKeyAtomic64(
|
|
|
|
|
[R(0)] ulong mutexAddress,
|
|
|
|
|
[R(1)] ulong condVarAddress,
|
|
|
|
|
[R(2)] int handle,
|
|
|
|
|
[R(3)] long timeout)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.WaitProcessWideKeyAtomic(mutexAddress, condVarAddress, handle, timeout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SignalProcessWideKey64([R(0)] ulong address, [R(1)] int count)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SignalProcessWideKey(address, count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult WaitForAddress64([R(0)] ulong address, [R(1)] ArbitrationType type, [R(2)] int value, [R(3)] long timeout)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.WaitForAddress(address, type, value, timeout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public KernelResult SignalToAddress64([R(0)] ulong address, [R(1)] SignalType type, [R(2)] int value, [R(3)] int count)
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SignalToAddress(address, type, value, count);
|
|
|
|
|
}
|
2021-12-30 04:55:06 -05:00
|
|
|
|
|
|
|
|
|
public KernelResult SynchronizePreemptionState64()
|
|
|
|
|
{
|
|
|
|
|
return _syscall.SynchronizePreemptionState();
|
|
|
|
|
}
|
2020-05-03 23:41:29 -04:00
|
|
|
|
}
|
|
|
|
|
}
|