Add NVHOST_IOCTL_CTRL_EVENT_KILL (0x40080021)

This commit is contained in:
HorrorTroll 2019-03-22 20:57:32 +07:00
parent f1618d89b0
commit 6aa808eb92

View file

@ -37,6 +37,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvHostCtrl
case 0x001d: return EventWait (context);
case 0x001e: return EventWaitAsync(context);
case 0x001f: return EventRegister (context);
case 0x0021: return EventKill (context);
}
throw new NotImplementedException(cmd.ToString("x8"));
@ -150,6 +151,18 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvHostCtrl
return NvResult.Success;
}
private static int EventKill(ServiceCtx context)
{
long inputPosition = context.Request.GetBufferType0x21().Position;
long outputPosition = context.Request.GetBufferType0x22().Position;
long events = context.Memory.ReadInt64(inputPosition);
Logger.PrintStub(LogClass.ServiceNv);
return NvResult.Success;
}
private static int SyncptReadMinOrMax(ServiceCtx context, bool max)
{
long inputPosition = context.Request.GetBufferType0x21().Position;