std :: hal::riscv
Struct std::Plic
struct Plic {
unsigned long base;
}Fields
Methods
Set interrupt priority (1–7; 0 = disabled).
Enable interrupt irq for target context 0 (M-mode hart 0).
Set priority threshold for context 0.
Claim highest-priority pending interrupt; returns IRQ number (0 = none).
Complete interrupt handling for irq.