Refactor SVC handler (#540)

* Refactor SVC handler

* Get rid of KernelErr

* Split kernel code files into multiple folders
This commit is contained in:
gdkchan 2018-12-18 03:33:36 -02:00 committed by GitHub
parent 2534a7f10c
commit 0039bb6394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 1894 additions and 1982 deletions

View file

@ -1,5 +1,7 @@
using ChocolArm64.Memory;
using Ryujinx.HLE.HOS.Kernel;
using Ryujinx.HLE.HOS.Kernel.Common;
using Ryujinx.HLE.HOS.Kernel.Ipc;
using Ryujinx.HLE.HOS.Kernel.Process;
using System;
using System.IO;
@ -7,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Ipc
{
static class IpcHandler
{
public static long IpcCall(
public static KernelResult IpcCall(
Switch device,
KProcess process,
MemoryManager memory,
@ -100,7 +102,7 @@ namespace Ryujinx.HLE.HOS.Ipc
memory.WriteBytes(cmdPtr, response.GetBytes(cmdPtr));
}
return 0;
return KernelResult.Success;
}
private static IpcMessage FillResponse(IpcMessage response, long result, params int[] values)