wfi in core::arch::riscv64 - Rust
Description: Generates the `WFI` instruction

# Function core::arch::riscv64::wfi

source ·

    pub unsafe fn wfi()

🔬This is a nightly-only experimental API. (`stdsimd` #48556)
Available on RISC-V RV64 only.
Expand description

Generates the `WFI` instruction

The WFI instruction provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing. This instruction is a hint, and a legal implementation is to simply implement WFI as a NOP.