mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: syscall: return Ok for yield() on hosted
When running in Hosted mode, a yield shouldn't do anything. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
dfa20cc1b1
commit
eecd9c2367
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ fn retry_syscall(pid: PID, tid: TID) -> SysCallResult {
|
||||||
arch::process::Process::with_current_mut(|p| p.retry_instruction(tid))?;
|
arch::process::Process::with_current_mut(|p| p.retry_instruction(tid))?;
|
||||||
do_yield(pid, tid)
|
do_yield(pid, tid)
|
||||||
} else {
|
} else {
|
||||||
Ok(xous_kernel::Result::WouldBlock)
|
Ok(xous_kernel::Result::Ok)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue