esp_wifi/
memory_fence.rs

1
2
3
4
5
6
7
8
9
10
11
pub(crate) fn memory_fence() {
    #[cfg(xtensa)]
    unsafe {
        core::arch::asm!("memw");
    }

    #[cfg(riscv)]
    unsafe {
        core::arch::asm!("fence");
    }
}