Function sbi::ecall1

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

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

Safety

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