aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Kernel/Memory/DramMemoryMap.cs
blob: 4941d5b783e4d69b8eb6af8d5eb4b22d86c647a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Ryujinx.HLE.HOS.Kernel.Memory
{
    static class DramMemoryMap
    {
        public const ulong DramBase = 0x80000000;

        public const ulong KernelReserveBase = DramBase + 0x60000;

        public const ulong SlabHeapBase = KernelReserveBase + 0x85000;
        public const ulong SlapHeapSize = 0xa21000;
        public const ulong SlabHeapEnd  = SlabHeapBase + SlapHeapSize;

        public static bool IsHeapPhysicalAddress(ulong address)
        {
            return address >= SlabHeapEnd;
        }
    }
}