Function sbi::ecall6

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

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

Safety

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