mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-12 21:53:28 +00:00
parent
442c24420d
commit
7d4674b728
@ -99,7 +99,9 @@ class Mbox : Genode::Attached_mmio
|
||||
while (!read<Status::Rd_empty>())
|
||||
read<Read>();
|
||||
|
||||
if (!wait_for<Status::Wr_full>(0, _delayer, 500, 1)) {
|
||||
try { wait_for(Attempts(500), Microseconds(1), _delayer,
|
||||
Status::Wr_full::Equal(0)); }
|
||||
catch (Polling_timeout) {
|
||||
Genode::error("Mbox: timeout waiting for ready-to-write");
|
||||
return;
|
||||
}
|
||||
@ -110,7 +112,9 @@ class Mbox : Genode::Attached_mmio
|
||||
Write::Cache_policy::set(value, MESSAGE::cache_policy());
|
||||
write<Write>(value);
|
||||
|
||||
if (!wait_for<Status::Rd_empty>(0, _delayer, 500, 1)) {
|
||||
try { wait_for(Attempts(500), Microseconds(1), _delayer,
|
||||
Status::Rd_empty::Equal(0)); }
|
||||
catch (Polling_timeout) {
|
||||
Genode::error("Mbox: timeout waiting for response");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user