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:
Sean Cross 2020-11-23 17:23:53 +08:00
parent dfa20cc1b1
commit eecd9c2367

View file

@ -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)
} }
} }