Crate riscv_slic

source ·

Re-exports§

Macros§

Traits§

Functions§

  • Clears software interrupt flags to avoid interruptions. It also resets the software interrupt controllers.
  • Disables all interrupts in the current hart (machine mode).
  • Enables all the interrupts in the current hart (machine mode).
  • 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.
  • Stabilized API for pending a software interrupt on the SLIC.
  • Runs a function with priority mask.
  • Sets the interrupt flags to allow software interrupts. It also sets the interrupt threshold to 0 (i.e., accept all interrupts).
  • Stabilized API for setting the priority of a software interrupt of the SLIC.
  • Stabilized API for setting the threshold of the SLIC.

Type Aliases§