kern: adjust pool allocations

This commit is contained in:
Michael Scire 2023-02-21 08:16:39 -07:00
parent b484f27530
commit 1690cfd766
3 changed files with 4 additions and 4 deletions

View file

@ -368,7 +368,7 @@ namespace ams::kern::board::nintendo::nx {
size_t KSystemControl::Init::GetMinimumNonSecureSystemPoolSize() {
/* Verify that our minimum is at least as large as Nintendo's. */
constexpr size_t MinimumSize = ::ams::svc::RequiredNonSecureSystemMemorySize;
static_assert(MinimumSize >= 0x29C8000);
static_assert(MinimumSize >= 0x2C04000);
return MinimumSize;
}

View file

@ -140,7 +140,7 @@ namespace ams::kern::init {
}
size_t CalculateSlabHeapGapSize() {
constexpr size_t KernelSlabHeapGapSize = 2_MB - 320_KB;
constexpr size_t KernelSlabHeapGapSize = 2_MB - 356_KB;
static_assert(KernelSlabHeapGapSize <= KernelSlabHeapGapsSizeMax);
return KernelSlabHeapGapSize;
}