Change GetPageSize to use Environment.SystemPageSize (#4291)
* Change GetPageSize to use Environment.SystemPageSize * Fix PR comment
This commit is contained in:
parent
93df366b2c
commit
b402b4e7f6
1 changed files with 1 additions and 6 deletions
|
@ -435,12 +435,7 @@ namespace Ryujinx.Memory
|
||||||
|
|
||||||
public static ulong GetPageSize()
|
public static ulong GetPageSize()
|
||||||
{
|
{
|
||||||
if (OperatingSystem.IsMacOS() && RuntimeInformation.ProcessArchitecture == Architecture.Arm64)
|
return (ulong)Environment.SystemPageSize;
|
||||||
{
|
|
||||||
return 1UL << 14;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1UL << 12;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ThrowInvalidMemoryRegionException() => throw new InvalidMemoryRegionException();
|
private static void ThrowInvalidMemoryRegionException() => throw new InvalidMemoryRegionException();
|
||||||
|
|
Reference in a new issue