2018-02-27 15:45:07 -08:00
|
|
|
using ChocolArm64.Memory;
|
|
|
|
|
2018-02-23 16:59:38 -08:00
|
|
|
namespace Ryujinx.Core.OsHle
|
|
|
|
{
|
|
|
|
static class MemoryRegions
|
|
|
|
{
|
2018-02-27 15:45:07 -08:00
|
|
|
public const long AddrSpaceStart = 0x08000000;
|
|
|
|
|
|
|
|
public const long MapRegionAddress = 0x10000000;
|
2018-02-28 12:58:04 -08:00
|
|
|
public const long MapRegionSize = 0x10000000;
|
2018-02-23 16:59:38 -08:00
|
|
|
|
2018-02-27 15:45:07 -08:00
|
|
|
public const long MainStackSize = 0x100000;
|
|
|
|
|
|
|
|
public const long MainStackAddress = AMemoryMgr.AddrSize - MainStackSize;
|
|
|
|
|
|
|
|
public const long TlsPagesSize = 0x4000;
|
|
|
|
|
|
|
|
public const long TlsPagesAddress = MainStackAddress - TlsPagesSize;
|
|
|
|
|
2018-02-23 16:59:38 -08:00
|
|
|
public const long HeapRegionAddress = MapRegionAddress + MapRegionSize;
|
2018-02-27 15:45:07 -08:00
|
|
|
|
|
|
|
public const long TotalMemoryUsed = HeapRegionAddress + TlsPagesSize + MainStackSize;
|
|
|
|
|
|
|
|
public const long TotalMemoryAvailable = AMemoryMgr.RamSize - AddrSpaceStart;
|
|
|
|
|
|
|
|
public const long AddrSpaceSize = AMemoryMgr.AddrSize - AddrSpaceStart;
|
2018-02-23 16:59:38 -08:00
|
|
|
}
|
|
|
|
}
|