diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-10 00:28:33 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-10 00:28:33 -0400 |
commit | fc0bf91a969cddeb2f84c3e7c3a862fe98f1d438 (patch) | |
tree | d0773fbb4563392af144e5caf70a2c4c7664d58c /src/core/core.cpp | |
parent | 364932df3a4fd6b70e6d67c45f016ef0450e77b2 (diff) |
kernel: Differentiate kernel and user processes when picking ID
This allows kernel internal type processes to be assigned IDs in the KIP range while userland processes are assigned in the user range.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ff0721079..d808c0417 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -150,7 +150,8 @@ struct System::Impl { } telemetry_session->AddInitialInfo(*app_loader); - auto main_process = Kernel::Process::Create(system, "main"); + auto main_process = + Kernel::Process::Create(system, "main", Kernel::Process::ProcessType::Userland); const auto [load_result, load_parameters] = app_loader->Load(*main_process); if (load_result != Loader::ResultStatus::Success) { LOG_CRITICAL(Core, "Failed to load ROM (Error {})!", static_cast<int>(load_result)); |