Function sbi::ecall5

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

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

Safety

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