pub fn app_stack_region(
args: &[String],
envs: &[String],
auxv: &[AuxEntry],
sp: usize,
) -> Vec<u8>Expand description
Generate initial stack frame for user stack
§Arguments
args- Arguments of the applicationenvs- Environment variables of the applicationauxv- Auxiliary vectors of the applicationsp- Highest address of the stack
§Return
Vec<u8>- Initial stack frame of the application
§Notes
The detailed format is described in https://articles.manugarg.com/aboutelfauxiliaryvectors.html