1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-17 17:36:44 +00:00

kern: adjust pool allocations

This commit is contained in:
Michael Scire 2023-02-21 08:16:39 -07:00 committed by SciresM
parent ca7734ffaf
commit bff61c68ab
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;
}

View file

@ -64,8 +64,8 @@ namespace ams::svc::board::nintendo::nx {
namespace impl {
constexpr inline const size_t RequiredNonSecureSystemMemorySizeVi = 0x2238 * 4_KB;
constexpr inline const size_t RequiredNonSecureSystemMemorySizeNvservices = 0x710 * 4_KB;
constexpr inline const size_t RequiredNonSecureSystemMemorySizeVi = 0x2400 * 4_KB;
constexpr inline const size_t RequiredNonSecureSystemMemorySizeNvservices = 0x784 * 4_KB;
constexpr inline const size_t RequiredNonSecureSystemMemorySizeMisc = 0x80 * 4_KB;
}