kernel: services: fix recursion warning in Process

The `Process::defualt()` implementation started getting a recursion
warning in 1.60.0.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-05 13:32:48 +08:00
parent e13bb426e3
commit ab512c8996

View file

@ -140,7 +140,12 @@ impl Default for Process {
fn default() -> Self {
Process {
ppid: unsafe { PID::new_unchecked(1) },
..Default::default()
state: ProcessState::Allocated,
pid: unsafe { PID::new_unchecked(2) },
current_thread: 0,
previous_thread: 0,
exception_handler: None,
mapping: Default::default(),
}
}
}