Set return value for SleepThread when yielding

This commit is contained in:
roblabla 2017-12-10 21:46:46 +01:00
parent c586044616
commit b8dc6830d6

View file

@ -219,7 +219,9 @@ guint Svc::SleepThread(guint ns) {
auto thread = ctu->tm.current();
// Yield, at least.
thread->suspend([=] {
thread->resume([=] {});
thread->resume([=] {
thread->regs.X0 = 0;
});
});
return 0;
}