mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 13:06:33 +00:00
Move functions related to spawning the init process to a seperate module
This commit is contained in:
@ -35,7 +35,7 @@ use ostd::{
|
||||
boot::boot_info,
|
||||
cpu::{CpuId, CpuSet, PinCurrentCpu},
|
||||
};
|
||||
use process::Process;
|
||||
use process::{spawn_init_process, Process};
|
||||
use sched::SchedPolicy;
|
||||
|
||||
use crate::{prelude::*, thread::kernel_thread::ThreadOptions};
|
||||
@ -151,7 +151,7 @@ fn init_thread() {
|
||||
|
||||
let karg: KCmdlineArg = boot_info().kernel_cmdline.as_str().into();
|
||||
|
||||
let initproc = Process::spawn_user_process(
|
||||
let initproc = spawn_init_process(
|
||||
karg.get_initproc_path().unwrap(),
|
||||
karg.get_initproc_argv().to_vec(),
|
||||
karg.get_initproc_envp().to_vec(),
|
||||
|
Reference in New Issue
Block a user