'while' is reverse of 'until'...

This commit is contained in:
mwojcik 2021-09-20 15:03:49 +02:00
parent 414cfd2fa7
commit 241113c6b2

View File

@ -328,7 +328,8 @@ fn async_error_thread() {
loop { loop {
unsafe { unsafe {
// replaced io.until with spinlock // replaced io.until with spinlock
while csr::rtio_core::async_error_read() != 0 {} // could potentially put a sleep in there?
while csr::rtio_core::async_error_read() == 0 {}
let errors = csr::rtio_core::async_error_read(); let errors = csr::rtio_core::async_error_read();
if errors & 1 != 0 { if errors & 1 != 0 {