sfence_vma_vaddr in core::arch::riscv32 - Rust
Description: Supervisor memory management fence for given virtual address

Skip to main content

## sfence_vma_vaddr

# Function sfence_vma_vaddr

Source

    pub unsafe fn sfence_vma_vaddr(vaddr: usize)

🔬This is a nightly-only experimental API. (`riscv_ext_intrinsics` #114544)
Available on (RISC-V RV32) and (RISC-V RV32 or RISC-V RV64) only.
Expand description

Supervisor memory management fence for given virtual address

The fence orders only reads and writes made to leaf page table entries corresponding to the virtual address in parameter `vaddr`, for all address spaces. The fence also invalidates all address-translation cache entries that contain leaf page table entries corresponding to the virtual address in parameter `vaddr`, for all address spaces.