aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Kernel/Memory/DramMemoryMap.cs
blob: e7af29636d2c3fed10b2f88c9446191274653080 (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;
        }
    }
}