summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-11 09:10:08 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:53 +0100
commitbfc4823e36b0f6f33176c8fcee1309d0f5f40389 (patch)
tree70d1da892a783b240fd0df1b73ac42ce6075a45e /src/core
parentcore: hle: service: sm: Fix KPort reference count. (diff)
downloadyuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar.gz
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar.bz2
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar.lz
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar.xz
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.tar.zst
yuzu-bfc4823e36b0f6f33176c8fcee1309d0f5f40389.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/kernel_helpers.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/core/hle/service/kernel_helpers.cpp b/src/core/hle/service/kernel_helpers.cpp
index b8c2c6e51..ff0bbb788 100644
--- a/src/core/hle/service/kernel_helpers.cpp
+++ b/src/core/hle/service/kernel_helpers.cpp
@@ -17,21 +17,12 @@ namespace Service::KernelHelpers {
ServiceContext::ServiceContext(Core::System& system_, std::string name_)
: kernel(system_.Kernel()) {
-
- // Create a resource limit for the process.
- const auto physical_memory_size =
- kernel.MemoryManager().GetSize(Kernel::KMemoryManager::Pool::System);
- auto* resource_limit = Kernel::CreateResourceLimitForProcess(system_, physical_memory_size);
-
// Create the process.
process = Kernel::KProcess::Create(kernel);
ASSERT(Kernel::KProcess::Initialize(process, system_, std::move(name_),
Kernel::KProcess::ProcessType::KernelInternal,
- resource_limit)
+ kernel.GetSystemResourceLimit())
.IsSuccess());
-
- // Close reference to our resource limit, as the process opens one.
- resource_limit->Close();
}
ServiceContext::~ServiceContext() {