make the fence operation stronger on susres

This commit is contained in:
bunnie 2023-01-31 16:05:28 +08:00
parent 2a6679668b
commit 6b0257b5d5

View file

@ -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);