mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
kern: adjust pool allocations
This commit is contained in:
parent
b484f27530
commit
1690cfd766
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue