From 84996ccd36a5fa13892c1f02acb1c79031c35aa5 Mon Sep 17 00:00:00 2001 From: Starlet Date: Tue, 22 May 2018 16:40:46 -0400 Subject: [SvcSystem/SvcMemory] Implement SvcGetInfo 16, SvcMapPhysicalMemory & SvcUnmapPhysicalMemory (#126) * [SvcSystem] Implement SvcGetInfo 16 SvcGetInfo 16 always should be 1(?) * Implement SvcMapPhysicalMemory & SvcUnmapPhysicalMemory * Adjusted to review. --- Ryujinx.Core/OsHle/Kernel/SvcSystem.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Ryujinx.Core/OsHle/Kernel/SvcSystem.cs') diff --git a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs index 24317bdf..77f35c19 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs @@ -18,6 +18,8 @@ namespace Ryujinx.Core.OsHle.Kernel private const bool EnableProcessDebugging = false; + private const bool IsVirtualMemoryEnabled = true; //This is always true(?) + private void SvcExitProcess(AThreadState ThreadState) { Ns.Os.ExitProcess(ThreadState.ProcessId); @@ -350,6 +352,10 @@ namespace Ryujinx.Core.OsHle.Kernel case 15: ThreadState.X1 = MemoryRegions.MapRegionSize; break; + + case 16: + ThreadState.X1 = IsVirtualMemoryEnabled ? 1 : 0; + break; default: Process.PrintStackTrace(ThreadState); -- cgit v1.2.3