kern: implement process(pagetable) init

This commit is contained in:
Michael Scire 2020-02-19 01:22:27 -08:00
parent fba8fb539d
commit 05a3e95834
16 changed files with 502 additions and 24 deletions

View file

@ -85,7 +85,7 @@ namespace ams::kern {
MESOSPHERE_ABORT_UNLESS(new_process != nullptr);
/* Initialize the process. */
MESOSPHERE_TODO("Initialize the process");
MESOSPHERE_R_ABORT_UNLESS(new_process->Initialize(params, pg, reader.GetCapabilities(), reader.GetNumCapabilities(), std::addressof(Kernel::GetSystemResourceLimit()), pool));
}
}
@ -93,7 +93,7 @@ namespace ams::kern {
MESOSPHERE_TODO("Set process's memory permissions");
/* Register the process. */
MESOSPHERE_TODO("Register the process");
KProcess::Register(new_process);
/* Save the process info. */
infos[i].process = new_process;