Function sbi::ecall0

source · []
pub unsafe fn ecall0(
    extension_id: usize,
    function_id: usize
) -> Result<usize, SbiError>
Expand description

A zero-argument ecall with the given extension and function IDs.

Safety

This function is only safe to call if the given function ID accepts no parameters, otherwise the behavior is undefined, as the additional argument registers will have undefined contents when passed to the SBI implementation.