diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-29 16:24:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 16:24:52 +0100 |
commit | 6aee148b170e6886e58a3996f729b2cc87329e95 (patch) | |
tree | 39efd9469af6a922ee5f38d906940412333c1455 /src/core/core.cpp | |
parent | Merge pull request #11827 from liamwhite/preallocated (diff) | |
parent | kernel: make sure new process is in list (diff) | |
download | yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.gz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.bz2 yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.lz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.xz yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.zst yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index d7e2efbd7..14d6c8c27 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -309,17 +309,10 @@ struct System::Impl { telemetry_session->AddInitialInfo(*app_loader, fs_controller, *content_provider); - // Create a resource limit for the process. - const auto physical_memory_size = - kernel.MemoryManager().GetSize(Kernel::KMemoryManager::Pool::Application); - auto* resource_limit = Kernel::CreateResourceLimitForProcess(system, physical_memory_size); - // Create the process. auto main_process = Kernel::KProcess::Create(system.Kernel()); - ASSERT(Kernel::KProcess::Initialize(main_process, system, "main", - Kernel::KProcess::ProcessType::Userland, resource_limit) - .IsSuccess()); Kernel::KProcess::Register(system.Kernel(), main_process); + kernel.AppendNewProcess(main_process); kernel.MakeApplicationProcess(main_process); const auto [load_result, load_parameters] = app_loader->Load(*main_process, system); if (load_result != Loader::ResultStatus::Success) { @@ -418,6 +411,7 @@ struct System::Impl { services->KillNVNFlinger(); } kernel.CloseServices(); + kernel.ShutdownCores(); services.reset(); service_manager.reset(); cheat_engine.reset(); @@ -429,7 +423,6 @@ struct System::Impl { gpu_core.reset(); host1x_core.reset(); perf_stats.reset(); - kernel.ShutdownCores(); cpu_manager.Shutdown(); debugger.reset(); kernel.Shutdown(); |