2018-02-27 18:45:07 -05:00
|
|
|
using ChocolArm64.Memory;
|
|
|
|
|
2018-06-10 20:46:42 -04:00
|
|
|
namespace Ryujinx.HLE.OsHle
|
2018-02-23 19:59:38 -05:00
|
|
|
{
|
|
|
|
static class MemoryRegions
|
|
|
|
{
|
2018-02-27 18:45:07 -05:00
|
|
|
public const long AddrSpaceStart = 0x08000000;
|
|
|
|
|
|
|
|
public const long MapRegionAddress = 0x10000000;
|
2018-03-06 15:27:50 -05:00
|
|
|
public const long MapRegionSize = 0x20000000;
|
2018-02-23 19:59:38 -05:00
|
|
|
|
2018-03-09 21:12:57 -05:00
|
|
|
public const long HeapRegionAddress = MapRegionAddress + MapRegionSize;
|
|
|
|
public const long HeapRegionSize = TlsPagesAddress - HeapRegionAddress;
|
|
|
|
|
2018-02-27 18:45:07 -05:00
|
|
|
public const long MainStackSize = 0x100000;
|
|
|
|
|
|
|
|
public const long MainStackAddress = AMemoryMgr.AddrSize - MainStackSize;
|
|
|
|
|
2018-04-06 09:53:18 -04:00
|
|
|
public const long TlsPagesSize = 0x20000;
|
2018-02-27 18:45:07 -05:00
|
|
|
|
|
|
|
public const long TlsPagesAddress = MainStackAddress - TlsPagesSize;
|
|
|
|
|
|
|
|
public const long TotalMemoryUsed = HeapRegionAddress + TlsPagesSize + MainStackSize;
|
|
|
|
|
|
|
|
public const long TotalMemoryAvailable = AMemoryMgr.RamSize - AddrSpaceStart;
|
|
|
|
|
|
|
|
public const long AddrSpaceSize = AMemoryMgr.AddrSize - AddrSpaceStart;
|
2018-02-23 19:59:38 -05:00
|
|
|
}
|
|
|
|
}
|