Skip to main content

init_from_stack

Function init_from_stack 

Source
pub unsafe fn init_from_stack(sp: *const u64)
Expand description

Parses the initial EL0 process stack at sp (argc, argv, envp, auxv) and records process startup state.

ยงSafety

sp must be null or point to a valid EL0 initial stack image readable up to the terminating AT_NULL auxiliary vector entry (bounded by MAX_STACK_WORDS words), and string pointers in argv / envp must remain valid NUL-terminated strings while accessed.