From 6b0257b5d5b6dec3999faa24ba577571ecb0bfac Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 31 Jan 2023 16:05:28 +0800 Subject: [PATCH] make the fence operation stronger on susres --- services/xous-susres/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/xous-susres/src/main.rs b/services/xous-susres/src/main.rs index bafed0213..8647f5461 100644 --- a/services/xous-susres/src/main.rs +++ b/services/xous-susres/src/main.rs @@ -88,7 +88,7 @@ mod implementation { } // prevent re-ordering - core::sync::atomic::compiler_fence(core::sync::atomic::Ordering::Acquire); + core::sync::atomic::compiler_fence(core::sync::atomic::Ordering::SeqCst); // power the system down - this should result in an almost immediate loss of power loop { sr.csr.wfo(utra::susres::POWERDOWN_POWERDOWN, 1);