Crate riscv_slic

Source

Re-exports§

pub use critical_section;
pub use riscv;

Macros§

codegen

Traits§

InterruptNumber
Trait for enums of software interrupt numbers.

Functions§

disable
Disables system interrupts, software interrupts (if needed), and the SLIC.
enable
Enables the SLIC, software interrupts (if needed), and system interrupts.
get_threshold
Stabilized API for getting the current threshold of the SLIC.
lock
Runs a function that takes a shared resource with a priority ceiling. This function returns the return value of the target function.
nested
Execute closure f with interrupts enabled in the current hart (machine mode).
pend
Stabilized API for pending a software interrupt on the SLIC.
run
Runs a function with priority mask.
set_priority
Stabilized API for setting the priority of a software interrupt of the SLIC.
set_threshold
Stabilized API for setting the threshold of the SLIC.