pub trait PlicOptions {
;
;
;
;
;
}
Expand description

The options for use_plic!.

Required Associated Constants§

source

The base address of PLIC’s memory-mapped registers.

source

The maximum (highest) interrupt priority supported by the PLIC implementation.

source

The last interrupt source supported by the PLIC implementation. Must be in range 0..=1023.

Provided Associated Constants§

source

The PLIC context for the hart on which the kernel runs.

source

Enables the trick for nested interrupt processing.

PLIC is not designed to allow nested interrupt processing. When this flag is enabled, the driver will signal completion earlier to start accepting higher-priority interrupts.

The following advices should be taken into consideration when enabling this option:

  • This should be disabled when there is at least one interrupt source configured to target multiple contexts.

  • Some PLIC gateway implementations don’t clear the pending flag when an incoming interrupt request signal is deasserted. The pending flag gets set again as soon as completion is signaled, meaning the interrupt will be claimed twice every time it’s taken. The PLIC in FE310 has this issue.

Defaults to false when unspecified.

Implementors§