Skip to main content

start_impl

Function start_impl 

Source
pub(crate) extern "C" fn start_impl(initial_sp: *const u64) -> !
Expand description

Main program logic; called from the naked _start trampoline.

initial_sp is the SysV stack pointer captured before any prologue code has run, so *initial_sp == argc and *(initial_sp + 1) == argv[0].