mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
make the fence operation stronger on susres
This commit is contained in:
parent
2a6679668b
commit
6b0257b5d5
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ mod implementation {
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent re-ordering
|
// 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
|
// power the system down - this should result in an almost immediate loss of power
|
||||||
loop {
|
loop {
|
||||||
sr.csr.wfo(utra::susres::POWERDOWN_POWERDOWN, 1);
|
sr.csr.wfo(utra::susres::POWERDOWN_POWERDOWN, 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue