Function format_pmp_entries

Source
pub unsafe fn format_pmp_entries<const PHYSICAL_ENTRIES: usize>(
    f: &mut Formatter<'_>,
) -> Result
Expand description

Print a table of the configured PMP regions, read from the HW CSRs.

§Safety

This function is unsafe, as it relies on the PMP CSRs to be accessible, and the hardware to feature PHYSICAL_ENTRIES PMP CSR entries. If these conditions are not met, calling this function can result in undefinied behavior (e.g., cause a system trap).