From 241113c6b299ba06e4eab4b8c40d02d1afa7319b Mon Sep 17 00:00:00 2001 From: mwojcik Date: Mon, 20 Sep 2021 15:03:49 +0200 Subject: [PATCH] 'while' is reverse of 'until'... --- src/runtime/src/rtio_mgt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/rtio_mgt.rs b/src/runtime/src/rtio_mgt.rs index ce91e2d..0b6fc80 100644 --- a/src/runtime/src/rtio_mgt.rs +++ b/src/runtime/src/rtio_mgt.rs @@ -328,7 +328,8 @@ fn async_error_thread() { loop { unsafe { // 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(); if errors & 1 != 0 {