Move kernel state out of the Horizon class (#1107)
* Move kernel state from Horizon to KernelContext * Merge syscalls partial classes, split 32 and 64-bit variants * Sort usings
This commit is contained in:
parent
cd48576f58
commit
15d1cc806b
68 changed files with 3678 additions and 3570 deletions
|
@ -13,9 +13,9 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostChannel
|
|||
|
||||
public NvHostGpuDeviceFile(ServiceCtx context) : base(context)
|
||||
{
|
||||
_smExceptionBptIntReportEvent = new KEvent(context.Device.System);
|
||||
_smExceptionBptPauseReportEvent = new KEvent(context.Device.System);
|
||||
_errorNotifierEvent = new KEvent(context.Device.System);
|
||||
_smExceptionBptIntReportEvent = new KEvent(context.Device.System.KernelContext);
|
||||
_smExceptionBptPauseReportEvent = new KEvent(context.Device.System.KernelContext);
|
||||
_errorNotifierEvent = new KEvent(context.Device.System.KernelContext);
|
||||
}
|
||||
|
||||
public override NvInternalResult Ioctl2(NvIoctl command, Span<byte> arguments, Span<byte> inlineInBuffer)
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrl
|
|||
|
||||
State = NvHostEventState.Available;
|
||||
|
||||
Event = new KEvent(system);
|
||||
Event = new KEvent(system.KernelContext);
|
||||
|
||||
_eventId = eventId;
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu
|
|||
|
||||
public NvHostCtrlGpuDeviceFile(ServiceCtx context) : base(context)
|
||||
{
|
||||
_errorEvent = new KEvent(context.Device.System);
|
||||
_unknownEvent = new KEvent(context.Device.System);
|
||||
_errorEvent = new KEvent(context.Device.System.KernelContext);
|
||||
_unknownEvent = new KEvent(context.Device.System.KernelContext);
|
||||
}
|
||||
|
||||
static NvHostCtrlGpuDeviceFile()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue