mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
Forcefully awake waiters in sys_usbd_finalize
This is a no-op from cellUsbd side but happens on lv2 side as well.
This commit is contained in:
parent
d90696be90
commit
a1e7cdf1e9
1 changed files with 10 additions and 0 deletions
|
@ -458,6 +458,16 @@ s32 sys_usbd_finalize(ppu_thread& ppu, u32 handle)
|
||||||
std::lock_guard lock(usbh->mutex);
|
std::lock_guard lock(usbh->mutex);
|
||||||
usbh->is_init = false;
|
usbh->is_init = false;
|
||||||
|
|
||||||
|
// Forcefully awake all waiters
|
||||||
|
for (auto& cpu : decltype(usbh->sq)(std::move(usbh->sq)))
|
||||||
|
{
|
||||||
|
// Special ternimation signal value
|
||||||
|
cpu->gpr[4] = 4;
|
||||||
|
cpu->gpr[5] = 0;
|
||||||
|
cpu->gpr[6] = 0;
|
||||||
|
lv2_obj::awake(cpu);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue