aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/MemoryRegions.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-27 20:45:07 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-27 20:45:07 -0300
commitf876bd2a805805d9e5dc350b65e8d02fbc5b88b5 (patch)
tree7a3af73448166b628526028cb35d09cc8a010eac /Ryujinx.Core/OsHle/MemoryRegions.cs
parent708761963e09ceb4619f8f21fffc7af051a8f020 (diff)
Change SvcGetInfo 5 to return actual heap size, remove AMemoryAlloc since it is no longer needed with direct memory access, move some memory management logic out of AMemoryMgr, change default virtual filesystem path to AppData
Diffstat (limited to 'Ryujinx.Core/OsHle/MemoryRegions.cs')
-rw-r--r--Ryujinx.Core/OsHle/MemoryRegions.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/Ryujinx.Core/OsHle/MemoryRegions.cs b/Ryujinx.Core/OsHle/MemoryRegions.cs
index 86d266f6..3b690426 100644
--- a/Ryujinx.Core/OsHle/MemoryRegions.cs
+++ b/Ryujinx.Core/OsHle/MemoryRegions.cs
@@ -1,11 +1,28 @@
+using ChocolArm64.Memory;
+
namespace Ryujinx.Core.OsHle
{
static class MemoryRegions
{
- public const long MapRegionAddress = 0x80000000;
+ public const long AddrSpaceStart = 0x08000000;
+
+ public const long MapRegionAddress = 0x10000000;
public const long MapRegionSize = 0x40000000;
+ public const long MainStackSize = 0x100000;
+
+ public const long MainStackAddress = AMemoryMgr.AddrSize - MainStackSize;
+
+ public const long TlsPagesSize = 0x4000;
+
+ public const long TlsPagesAddress = MainStackAddress - TlsPagesSize;
+
public const long HeapRegionAddress = MapRegionAddress + MapRegionSize;
- public const long HeapRegionSize = 0x40000000;
+
+ public const long TotalMemoryUsed = HeapRegionAddress + TlsPagesSize + MainStackSize;
+
+ public const long TotalMemoryAvailable = AMemoryMgr.RamSize - AddrSpaceStart;
+
+ public const long AddrSpaceSize = AMemoryMgr.AddrSize - AddrSpaceStart;
}
} \ No newline at end of file