1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

The syncd loop can just be a lambda.

This commit is contained in:
Andreas Kling 2018-12-24 23:10:48 +01:00
parent 503e32552c
commit 033a42b580
5 changed files with 10 additions and 18 deletions

View file

@ -544,7 +544,7 @@ int Process::sys$get_arguments(int* argc, char*** argv)
return 0;
}
Process* Process::create_kernel_process(void (*e)(), String&& name)
Process* Process::create_kernel_process(String&& name, void (*e)())
{
auto* process = new Process(move(name), (uid_t)0, (gid_t)0, (pid_t)0, Ring0);
process->m_tss.eip = (dword)e;