Adjusted to review.

This commit is contained in:
Starlet 2018-05-22 15:31:23 -04:00
parent b396ff01bc
commit 45c1cd6721
2 changed files with 5 additions and 3 deletions

View file

@ -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);

View file

@ -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: