Skip to main content

syscall_wrapper

Function syscall_wrapper 

Source
pub fn syscall_wrapper(
    syscall_no: SyscallWord,
    arg1: SyscallWord,
    arg2: SyscallWord,
    arg3: SyscallWord,
    arg4: SyscallWord,
    arg5: SyscallWord,
    arg6: SyscallWord,
    arg7: SyscallWord,
) -> i32
Expand description

The single dispatch chokepoint: leaves the guest and executes a syscall.

Takes the syscall number and arguments as raw pointer-width words and returns the raw i32 error code. The typed SyscallNo / SysErr wrapping is applied by the generated bindings in thruput-xdr.