mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
kernel: hosted: fix kernel tests
We don't need to re-create the PID1 process, since it is done immediately now. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ef3653bf36
commit
eb2014bc80
1 changed files with 7 additions and 5 deletions
|
|
@ -522,11 +522,13 @@ pub fn idle() -> bool {
|
||||||
// Switch to this process immediately, which moves it from `Setup(_)` to `Running(0)`.
|
// Switch to this process immediately, which moves it from `Setup(_)` to `Running(0)`.
|
||||||
// Note that in this system, multiple processes can be active at once. This is
|
// Note that in this system, multiple processes can be active at once. This is
|
||||||
// similar to having one core for each process
|
// similar to having one core for each process
|
||||||
SystemServices::with_mut(|ss| {
|
if new_pid != PID::new(1).unwrap() {
|
||||||
ss.create_thread(new_pid, ThreadInit {})?;
|
SystemServices::with_mut(|ss| {
|
||||||
ss.switch_to_thread(new_pid, None)
|
ss.create_thread(new_pid, ThreadInit {})?;
|
||||||
})
|
ss.switch_to_thread(new_pid, None)
|
||||||
.unwrap();
|
})
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ThreadMessage::SysCall(pid, thread_id, call) => {
|
ThreadMessage::SysCall(pid, thread_id, call) => {
|
||||||
// println!("KERNEL({}): Received syscall {:?}", pid, call);
|
// println!("KERNEL({}): Received syscall {:?}", pid, call);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue