Kernel: Print to the log what is the first user process & its arguments

This commit is contained in:
Liav A 2023-10-28 12:12:27 +03:00 committed by Andrew Kaster
parent 9254ed4f08
commit 4a50c01c50
Notes: sideshowbarker 2024-07-17 03:03:15 +09:00

View File

@ -449,6 +449,8 @@ void init_stage2(void*)
auto userspace_init = kernel_command_line().userspace_init();
auto init_args = kernel_command_line().userspace_init_args();
dmesgln("Running first user process: {}", userspace_init);
dmesgln("Init (first) process args: {}", init_args);
auto init_or_error = Process::create_user_process(userspace_init, UserID(0), GroupID(0), move(init_args), {}, tty0);
if (init_or_error.is_error())
PANIC("init_stage2: Error spawning init process: {}", init_or_error.error());