summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/init
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-02 07:30:42 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:54 +0200
commitf23760b1e1b4dc703dffaa245b7b469141935342 (patch)
tree0dd9954ac583dd3de021cee59ded1d152ea1ea55 /src/core/hle/kernel/init
parentfixup! hle: kernel: Migrate to KHandleTable. (diff)
downloadyuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar.gz
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar.bz2
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar.lz
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar.xz
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.tar.zst
yuzu-f23760b1e1b4dc703dffaa245b7b469141935342.zip
Diffstat (limited to 'src/core/hle/kernel/init')
-rw-r--r--src/core/hle/kernel/init/init_slab_setup.cpp8
1 files changed, 2 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 3aa76ee33..2dd792e71 100644
--- a/src/core/hle/kernel/init/init_slab_setup.cpp
+++ b/src/core/hle/kernel/init/init_slab_setup.cpp
@@ -117,10 +117,6 @@ void InitializeSlabResourceCounts() {
}
}
-size_t CalculateSlabHeapGapSize() {
- return KernelSlabHeapGapsSize;
-}
-
size_t CalculateTotalSlabHeapSize() {
size_t size = 0;
@@ -136,7 +132,7 @@ size_t CalculateTotalSlabHeapSize() {
#undef ADD_SLAB_SIZE
// Add the reserved size.
- size += CalculateSlabHeapGapSize();
+ size += KernelSlabHeapGapsSize;
return size;
}
@@ -158,7 +154,7 @@ void InitializeSlabHeaps(Core::System& system, KMemoryLayout& memory_layout) {
}
// Create an array to represent the gaps between the slabs.
- const size_t total_gap_size = CalculateSlabHeapGapSize();
+ const size_t total_gap_size = KernelSlabHeapGapsSize;
std::array<size_t, slab_types.size()> slab_gaps;
for (size_t i = 0; i < slab_gaps.size(); i++) {
// Note: This is an off-by-one error from Nintendo's intention, because GenerateRandomRange