mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-01-20 13:43:35 +00:00
kern: avoid hardcoding maximum board memory size
This commit is contained in:
parent
1a262c1063
commit
56ec55f3c4
2 changed files with 3 additions and 2 deletions
|
@ -19,5 +19,6 @@
|
||||||
namespace ams::kern {
|
namespace ams::kern {
|
||||||
|
|
||||||
constexpr inline size_t MainMemorySize = 4_GB;
|
constexpr inline size_t MainMemorySize = 4_GB;
|
||||||
|
constexpr inline size_t MainMemorySizeMax = 8_GB;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ namespace ams::kern {
|
||||||
constexpr size_t KernelPhysicalAddressSpaceLast = KernelPhysicalAddressSpaceEnd - 1ul;
|
constexpr size_t KernelPhysicalAddressSpaceLast = KernelPhysicalAddressSpaceEnd - 1ul;
|
||||||
constexpr size_t KernelPhysicalAddressSpaceSize = KernelPhysicalAddressSpaceEnd - KernelPhysicalAddressSpaceBase;
|
constexpr size_t KernelPhysicalAddressSpaceSize = KernelPhysicalAddressSpaceEnd - KernelPhysicalAddressSpaceBase;
|
||||||
|
|
||||||
constexpr size_t KernelPageTableHeapSize = init::KInitialPageTable::GetMaximumOverheadSize(8_GB);
|
constexpr size_t KernelPageTableHeapSize = init::KInitialPageTable::GetMaximumOverheadSize(kern::MainMemorySizeMax);
|
||||||
constexpr size_t KernelInitialPageHeapSize = 128_KB;
|
constexpr size_t KernelInitialPageHeapSize = 128_KB;
|
||||||
|
|
||||||
constexpr size_t KernelSlabHeapDataSize = 5_MB;
|
constexpr size_t KernelSlabHeapDataSize = 5_MB;
|
||||||
|
|
Loading…
Reference in a new issue