diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-06-22 12:28:14 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 12:28:14 -0300 |
commit | f2a41b7a1cad027cc1f1f8f687cda6ab42030eb9 (patch) | |
tree | 0e128bb17fe36bce8f1924a62b9ae516adbfdd30 /Ryujinx.HLE/HOS/ProgramLoader.cs | |
parent | c881cd2d1452dc6ad87a570db76139a0c6105132 (diff) |
Rewrite kernel memory allocator (#3316)1.1.152
* Rewrite kernel memory allocator
* Remove unused using
* Adjust private static field naming
* Change UlongBitSize to UInt64BitSize
* Fix unused argument, change argument order to be inline with official code and disable random allocation
Diffstat (limited to 'Ryujinx.HLE/HOS/ProgramLoader.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/ProgramLoader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/ProgramLoader.cs b/Ryujinx.HLE/HOS/ProgramLoader.cs index 6b9b6820..66fa20fa 100644 --- a/Ryujinx.HLE/HOS/ProgramLoader.cs +++ b/Ryujinx.HLE/HOS/ProgramLoader.cs @@ -90,7 +90,7 @@ namespace Ryujinx.HLE.HOS KMemoryRegionManager region = context.MemoryManager.MemoryRegions[(int)memoryRegion]; - KernelResult result = region.AllocatePages((ulong)codePagesCount, false, out KPageList pageList); + KernelResult result = region.AllocatePages(out KPageList pageList, (ulong)codePagesCount); if (result != KernelResult.Success) { |