kern: implement SetProcessMemoryPermission
This commit is contained in:
1 parent
b857153964
commit
28ea0b12a8
9 files changed
+317
-9
No files matched your search
@@ -90,11 +90,14 @@ namespace ams::kern {
|
||||
}
|
||||
|
||||
/* Set the process's memory permissions. */
|
||||
MESOSPHERE_TODO("Set process's memory permissions");
|
||||
MESOSPHERE_R_ABORT_UNLESS(reader.SetMemoryPermissions(new_process->GetPageTable(), params));
|
||||
|
||||
/* Register the process. */
|
||||
KProcess::Register(new_process);
|
||||
|
||||
/* Set the ideal core id. */
|
||||
new_process->SetIdealCoreId(reader.GetIdealCoreId());
|
||||
|
||||
/* Save the process info. */
|
||||
infos[i].process = new_process;
|
||||
infos[i].stack_size = reader.GetStackSize();
|
||||
|
||||
Reference in new issue
Block a user