summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-12 22:02:45 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:54 +0100
commite95bb782f08511cf6fa23c473e97c4861772dc39 (patch)
tree81962a3fc13b93b4b642715c142a0f32a82e033b /src/core
parentcore: hle: kernel: Allocate dummy threads on host thread storage. (diff)
downloadyuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar.gz
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar.bz2
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar.lz
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar.xz
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.tar.zst
yuzu-e95bb782f08511cf6fa23c473e97c4861772dc39.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/init/init_slab_setup.cpp12
1 files changed, 6 insertions, 6 deletions
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;