mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 10:37:06 +00:00
Fix heap size for kernel check and DRAM selections
This commit is contained in:
parent
298e2cdefd
commit
32d1653af9
2 changed files with 10 additions and 10 deletions
|
|
@ -198,9 +198,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||
aliasRegion.Size = 0x180000000;
|
||||
heapRegion.Size = memConfig switch {
|
||||
MemoryConfiguration.MemoryConfiguration6GiB => 0x180000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB
|
||||
or MemoryConfiguration.MemoryConfiguration10GiB
|
||||
or MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration10GiB => 0x280000000u,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => 0x300000000u,
|
||||
_ => 0x100000000u
|
||||
};
|
||||
stackRegion.Size = 0;
|
||||
|
|
@ -234,9 +234,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||
aliasRegion.Size = 1UL << (addressSpaceWidth - 3);
|
||||
heapRegion.Size = memConfig switch {
|
||||
MemoryConfiguration.MemoryConfiguration6GiB => 0x180000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB
|
||||
or MemoryConfiguration.MemoryConfiguration10GiB
|
||||
or MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration10GiB => 0x280000000u,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => 0x300000000u,
|
||||
_ => 0x100000000u
|
||||
};
|
||||
stackRegion.Size = 1UL << (addressSpaceWidth - 8);
|
||||
|
|
@ -254,9 +254,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
|||
aliasRegion.Size = 0x1000000000;
|
||||
heapRegion.Size = memConfig switch {
|
||||
MemoryConfiguration.MemoryConfiguration6GiB => 0x180000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB
|
||||
or MemoryConfiguration.MemoryConfiguration10GiB
|
||||
or MemoryConfiguration.MemoryConfiguration12GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration8GiB => 0x200000000u,
|
||||
MemoryConfiguration.MemoryConfiguration10GiB => 0x280000000u,
|
||||
MemoryConfiguration.MemoryConfiguration12GiB => 0x300000000u,
|
||||
_ => 0x100000000u
|
||||
};
|
||||
stackRegion.Size = 0x80000000;
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|||
[Svc(1)]
|
||||
public Result SetHeapSize([PointerSized] out ulong address, [PointerSized] ulong size)
|
||||
{
|
||||
if ((size & 0xfffffffe001fffff) != 0)
|
||||
if ((size & 0xfffffffc001fffff) != 0)
|
||||
{
|
||||
address = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue