Expand description
Legacy SBI calls
Constants
sbi_clear_ipi
extension ID
sbi_console_getchar
extension ID
sbi_console_putchar
extension ID
sbi_remote_fence_i
extension ID
sbi_remote_sfence_vma_asid
extension ID
sbi_remote_sfence_vma
extension ID
sbi_send_ipi
extension ID
sbi_set_timer
extension ID
sbi_shutdown
extension ID
Functions
Clears any pending interprocessor interrupts (IPIs) for the hart this function is called from.
Attempt to retrieve a character from the debug console. If there is no
character waiting to be read, or if there is no debug console device, this
function will return None
.
Write a character to the debug console. This call will block if there is still pending console output. If no console exists, no action is taken.
Execute a FENCE.I
instruction on the harts specified by hart_mask
bitmask.
Execute a SFENCE.VMA
instruction on the harts specified by hart_mask
bitmask for the virtual memory range specified by start
and size
.
Execute a SFENCE.VMA
instruction on the harts specified by hart_mask
bitmask for the virtual memory range specified by start
and size
for the
given Address Space ID (ASID) only.
Send an interprocessor interrupt (IPI) to all of the harts specified by
the hart_mask
bitmask. Received IPIs are represented as Supervisor
Software Interrupts.
Schedule an interrupt for time
in the future. To clear the timer interrupt
without scheduling another timer event, set a time infinitely far into the
future (u64::MAX
) or mask the STIE
bit of the sie
CSR. This function
will clear the pending timer interrupt bit.
Puts all harts into a shutdown state wherein the execution mode of the processors is more privileged than the current supervisor mode. This call does not return.