summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-11 08:43:25 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:53 +0100
commitce33503adf40b86f030a0520e40fb9cfe6a52631 (patch)
tree80073b29de6aaea0099633355d353c6e4f5abb38 /src/core
parentcore: hle: kernel: svc_types: Add ThreadLocalRegionSize. (diff)
downloadyuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar.gz
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar.bz2
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar.lz
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar.xz
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.tar.zst
yuzu-ce33503adf40b86f030a0520e40fb9cfe6a52631.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_memory_layout.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_memory_layout.h b/src/core/hle/kernel/k_memory_layout.h
index bcddb0d62..0858827b6 100644
--- a/src/core/hle/kernel/k_memory_layout.h
+++ b/src/core/hle/kernel/k_memory_layout.h
@@ -57,11 +57,11 @@ constexpr std::size_t KernelPageTableHeapSize = GetMaximumOverheadSize(MainMemor
constexpr std::size_t KernelInitialPageHeapSize = 128_KiB;
constexpr std::size_t KernelSlabHeapDataSize = 5_MiB;
-constexpr std::size_t KernelSlabHeapGapsSize = 2_MiB - 64_KiB;
-constexpr std::size_t KernelSlabHeapSize = KernelSlabHeapDataSize + KernelSlabHeapGapsSize;
+constexpr std::size_t KernelSlabHeapGapsSizeMax = 2_MiB - 64_KiB;
+constexpr std::size_t KernelSlabHeapSize = KernelSlabHeapDataSize + KernelSlabHeapGapsSizeMax;
// NOTE: This is calculated from KThread slab counts, assuming KThread size <= 0x860.
-constexpr std::size_t KernelSlabHeapAdditionalSize = 416_KiB;
+constexpr std::size_t KernelSlabHeapAdditionalSize = 0x68000;
constexpr std::size_t KernelResourceSize =
KernelPageTableHeapSize + KernelInitialPageHeapSize + KernelSlabHeapSize;