Function sbi::ecall3

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

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

Safety

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