⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

memory_fence

Function memory_fence 

Source
pub fn memory_fence()
Expand description

Full memory fence – all reads and writes issued before this barrier are globally visible before any reads or writes issued after it.

  • x86_64: core::sync::atomic::fence(SeqCst) – MFENCE semantics.
  • AArch64: dsb sy – Data Synchronization Barrier (full system).
  • RISC-V: fence rw, rw – read/write ordering fence.