fix compilation for thumbv6m-none-eabi

This commit is contained in:
LinuxHeki 2023-05-02 14:41:53 +02:00
parent 14b924e83a
commit 4c0a1e9459

View File

@ -50,7 +50,8 @@ impl HokmaLock {
pub fn write(&'static self) -> WhenTheHokmaSuppression {
loop {
let previous = self.lock.swap(1, Ordering::SeqCst);
let previous = self.lock.load(Ordering::SeqCst);
self.lock.store(1, Ordering::SeqCst);
if previous != 1 {
return WhenTheHokmaSuppression {