Skip to main content

do_usercall

Function do_usercall 

Source
pub unsafe fn do_usercall(
    nr: NonZero<u64>,
    p1: u64,
    p2: u64,
    p3: u64,
    p4: u64,
    abort: bool,
) -> (u64, u64)
🔬This is a nightly-only experimental API. (sgx_platform #56975)
Available on Fortanix and SGX only.
Expand description

Performs the raw usercall operation as defined in the ABI calling convention.

§Safety

The caller must ensure to pass parameters appropriate for the usercall nr and to observe all requirements specified in the ABI.

§Panics

Panics if nr is 0.