diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-29 23:23:14 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-11-04 05:17:07 +0100 |
commit | 1f21fa866dc1faaab47814fb7d1ce4749a5d613e (patch) | |
tree | 2a0263e22895ef3d7798d9df9daa68d7d325a27d /src/core/hle/kernel/kernel.cpp | |
parent | core: hle: kernel: k_memory_region_type: Refresh. (diff) | |
download | yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar.gz yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar.bz2 yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar.lz yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar.xz yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.tar.zst yuzu-1f21fa866dc1faaab47814fb7d1ce4749a5d613e.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index fdc774e30..fc94cb22c 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -454,6 +454,9 @@ struct KernelCore::Impl { ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert( misc_region_start, misc_region_size, KMemoryRegionType_KernelMisc)); + // Determine if we'll use extra thread resources. + const bool use_extra_resources = KSystemControl::Init::ShouldIncreaseThreadResourceLimit(); + // Setup the stack region. constexpr size_t StackRegionSize = 14_MiB; constexpr size_t StackRegionAlign = KernelAslrAlignment; @@ -464,7 +467,8 @@ struct KernelCore::Impl { stack_region_start, StackRegionSize, KMemoryRegionType_KernelStack)); // Determine the size of the resource region. - const size_t resource_region_size = memory_layout->GetResourceRegionSizeForInit(); + const size_t resource_region_size = + memory_layout->GetResourceRegionSizeForInit(use_extra_resources); // Determine the size of the slab region. const size_t slab_region_size = |