mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: don't activate target thread on hosted mode
This operation is unneeded on hosted, and causes an error. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
bf3a3879d2
commit
861565054e
1 changed files with 7 additions and 3 deletions
|
|
@ -743,9 +743,13 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
||||||
let ppid = process.ppid;
|
let ppid = process.ppid;
|
||||||
unsafe { SWITCHTO_CALLER = None };
|
unsafe { SWITCHTO_CALLER = None };
|
||||||
// TODO: Advance thread
|
// TODO: Advance thread
|
||||||
ss.activate_process_thread(tid, ppid, 0, false)
|
if cfg!(baremetal) {
|
||||||
.map(|_| Ok(xous_kernel::Result::ResumeProcess))
|
ss.activate_process_thread(tid, ppid, 0, false)
|
||||||
.unwrap_or(Err(xous_kernel::Error::ProcessNotFound))
|
.map(|_| Ok(xous_kernel::Result::ResumeProcess))
|
||||||
|
.unwrap_or(Err(xous_kernel::Error::ProcessNotFound))
|
||||||
|
} else {
|
||||||
|
Ok(xous_kernel::Result::Ok)
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
SysCall::CreateThread(thread_init) => SystemServices::with_mut(|ss| {
|
SysCall::CreateThread(thread_init) => SystemServices::with_mut(|ss| {
|
||||||
ss.create_thread(pid, thread_init).map(|new_tid| {
|
ss.create_thread(pid, thread_init).map(|new_tid| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue