pub unsafe extern "C" fn start(
_: usize,
shim_params_offset: isize,
) -> !
Expand description
The entry point.
X64: The relative offset for shim parameters are passed in the rsi register. rax contains the base address of where the shim was loaded at.
ARM64: The relative offset for shim parameters are passed in the x1 register. x2 contains the base address of where the shim was loaded at.
ยงSafety
The caller must ensure that the passed shim_params_offset is the correct offset from the shim base to the shim parameters.