Skip to content

Commit

Permalink
Use Acquire/Release ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 27, 2024
1 parent c6368af commit f660218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/rsa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ pub(crate) mod asynch {
}

fn is_done(&self) -> bool {
SIGNALED.load(Ordering::Relaxed)
SIGNALED.load(Ordering::Acquire)
}
}

Expand Down Expand Up @@ -518,7 +518,7 @@ pub(crate) mod asynch {
/// Interrupt handler for RSA.
pub(super) fn rsa_interrupt_handler() {
let rsa = unsafe { &*crate::peripherals::RSA::ptr() };
SIGNALED.store(true, Ordering::Relaxed);
SIGNALED.store(true, Ordering::Release);
cfg_if::cfg_if! {
if #[cfg(esp32)] {
rsa.interrupt().write(|w| w.interrupt().set_bit());
Expand Down

0 comments on commit f660218

Please sign in to comment.