diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 06:40:33 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 06:40:33 +0200 |
commit | 2067115c78fb43f525f025e79e347b9bb886c0c9 (patch) | |
tree | 87b3d66d33f42961b36d4cd9c3332a46d9b44e55 /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #6185 from ameerj/process-reslimit (diff) | |
download | yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.gz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.bz2 yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.lz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.xz yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.tar.zst yuzu-2067115c78fb43f525f025e79e347b9bb886c0c9.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index f7d3f218a..5c4f45ab4 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -72,7 +72,7 @@ struct KernelCore::Impl { KMemoryLayout memory_layout; DeriveInitialMemoryLayout(memory_layout); InitializeMemoryLayout(memory_layout); - InitializeSystemResourceLimit(kernel, system, memory_layout); + InitializeSystemResourceLimit(kernel, system.CoreTiming(), memory_layout); InitializeSlabHeaps(); InitializeSchedulers(); InitializeSuspendThreads(); @@ -142,9 +142,10 @@ struct KernelCore::Impl { } // Creates the default system resource limit - void InitializeSystemResourceLimit(KernelCore& kernel, Core::System& system, + void InitializeSystemResourceLimit(KernelCore& kernel, + const Core::Timing::CoreTiming& core_timing, const KMemoryLayout& memory_layout) { - system_resource_limit = std::make_shared<KResourceLimit>(kernel, system); + system_resource_limit = std::make_shared<KResourceLimit>(kernel, core_timing); const auto [total_size, kernel_size] = memory_layout.GetTotalAndKernelMemorySizes(); // If setting the default system values fails, then something seriously wrong has occurred. |