summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/init/init_slab_setup.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-05 06:35:42 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:54 +0200
commitb805ee653f3d178ed2b4b2e0a403bb0ab61dad8b (patch)
treefd54235441ff4c2a0986e106bf57c501c2c9982b /src/core/hle/kernel/init/init_slab_setup.h
parentfixup! hle: kernel: Migrate KSharedMemory to KAutoObject. (diff)
downloadyuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.gz
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.bz2
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.lz
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.xz
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.zst
yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.zip
Diffstat (limited to 'src/core/hle/kernel/init/init_slab_setup.h')
-rw-r--r--src/core/hle/kernel/init/init_slab_setup.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/init/init_slab_setup.h b/src/core/hle/kernel/init/init_slab_setup.h
index 6418b97ac..a8f7e0918 100644
--- a/src/core/hle/kernel/init/init_slab_setup.h
+++ b/src/core/hle/kernel/init/init_slab_setup.h
@@ -9,12 +9,15 @@ class System;
} // namespace Core
namespace Kernel {
+class KernelCore;
class KMemoryLayout;
} // namespace Kernel
namespace Kernel::Init {
struct KSlabResourceCounts {
+ static KSlabResourceCounts CreateDefault();
+
size_t num_KProcess;
size_t num_KThread;
size_t num_KEvent;
@@ -33,10 +36,8 @@ struct KSlabResourceCounts {
size_t num_KBeta;
};
-void InitializeSlabResourceCounts();
-const KSlabResourceCounts& GetSlabResourceCounts();
-
-size_t CalculateTotalSlabHeapSize();
+void InitializeSlabResourceCounts(KernelCore& kernel);
+size_t CalculateTotalSlabHeapSize(const KernelCore& kernel);
void InitializeSlabHeaps(Core::System& system, KMemoryLayout& memory_layout);
} // namespace Kernel::Init