From 82463a15507f1079b8f4f5b9a198842db7fac2aa Mon Sep 17 00:00:00 2001 From: maufeat Date: Tue, 5 May 2026 01:29:46 +0200 Subject: [PATCH] [kernel, hle] Initial 22.0.0 kernel changes and cmd stubs (#3761) - KProcess::Run() and CreateThread() SVC now write the current thread handle to TLS+0x110 - KPageTableBase::LockForMapDeviceAddressSpace now checks for a new KPageTableBase boolean, m_allowed_exec_device_mapping - Stub `am` + `acc` + `settings` cmd module that needs to work for qlaunch Thanks to: @alula and @yellows8 Source for changes: https://github.com/Atmosphere-NX/Atmosphere/pull/2744, https://switchbrew.org/, https://yls8.mtheall.com/ Co-authored-by: PavelBARABANOV Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3761 Reviewed-by: CamilleLaVey --- src/core/hle/service/am/service/application_creator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/am/service/application_creator.cpp b/src/core/hle/service/am/service/application_creator.cpp index e8e4a103c2..983ac700bc 100644 --- a/src/core/hle/service/am/service/application_creator.cpp +++ b/src/core/hle/service/am/service/application_creator.cpp @@ -87,7 +87,7 @@ Result IApplicationCreator::CreateSystemApplication( std::vector control; std::unique_ptr loader; - auto process = CreateProcess(system, application_id, 1, 21); + auto process = CreateProcess(system, application_id, 1, 22); R_UNLESS(process != std::nullopt, ResultUnknown); const auto applet = std::make_shared(system, std::make_unique(*std::move(process)), true);