diff --git a/Ryujinx.Core/OsHle/Kernel/SvcMemory.cs b/Ryujinx.Core/OsHle/Kernel/SvcMemory.cs index f77cc8ca50..3e3cfab58e 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcMemory.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcMemory.cs @@ -253,7 +253,7 @@ namespace Ryujinx.Core.OsHle.Kernel private void SvcMapPhysicalMemory(AThreadState ThreadState) { long Position = (long)ThreadState.X0; - uint Size = (uint)ThreadState.X1; + uint Size = (uint)ThreadState.X1; Memory.Manager.Map(Position, Size, (int)MemoryType.Heap, AMemoryPerm.RW); @@ -263,7 +263,7 @@ namespace Ryujinx.Core.OsHle.Kernel private void SvcUnmapPhysicalMemory(AThreadState ThreadState) { long Position = (long)ThreadState.X0; - uint Size = (uint)ThreadState.X1; + uint Size = (uint)ThreadState.X1; Memory.Manager.Unmap(Position, Size); diff --git a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs index 711f20cd88..77f35c199c 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); @@ -352,7 +354,7 @@ namespace Ryujinx.Core.OsHle.Kernel break; case 16: - ThreadState.X1 = 1; //This is always 1(?) + ThreadState.X1 = IsVirtualMemoryEnabled ? 1 : 0; break; default: