From e95bb782f08511cf6fa23c473e97c4861772dc39 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 12 Mar 2022 13:02:45 -0800 Subject: core: hle: kernel: init_slab_setup: Move CalculateSlabHeapGapSize to global namespace. --- src/core/hle/kernel/init/init_slab_setup.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/kernel/init/init_slab_setup.cpp b/src/core/hle/kernel/init/init_slab_setup.cpp index 4e60f0829..b0f773ee0 100644 --- a/src/core/hle/kernel/init/init_slab_setup.cpp +++ b/src/core/hle/kernel/init/init_slab_setup.cpp @@ -107,6 +107,12 @@ VAddr InitializeSlabHeap(Core::System& system, KMemoryLayout& memory_layout, VAd return start + size; } +size_t CalculateSlabHeapGapSize() { + constexpr size_t KernelSlabHeapGapSize = 2_MiB - 296_KiB; + static_assert(KernelSlabHeapGapSize <= KernelSlabHeapGapsSizeMax); + return KernelSlabHeapGapSize; +} + } // namespace KSlabResourceCounts KSlabResourceCounts::CreateDefault() { @@ -137,12 +143,6 @@ void InitializeSlabResourceCounts(KernelCore& kernel) { } } -size_t CalculateSlabHeapGapSize() { - constexpr size_t KernelSlabHeapGapSize = 2_MiB - 296_KiB; - static_assert(KernelSlabHeapGapSize <= KernelSlabHeapGapsSizeMax); - return KernelSlabHeapGapSize; -} - size_t CalculateTotalSlabHeapSize(const KernelCore& kernel) { size_t size = 0; -- cgit v1.2.3