MCPcopy Create free account
hub / github.com/Bananymous/banan-os / Process

Method Process

kernel/kernel/Process.cpp:352–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350 // auxv
351 for (auto aux : auxv)
352 stack_push_buf(BAN::ConstByteSpan::from(aux));
353
354 // information
355 for (size_t i = 0; i < argv.size(); i++)
356 {
357 stack_copy_buf(BAN::ConstByteSpan::from(vaddr), argv_vaddr + i * sizeof(uintptr_t));
358 stack_push_str(argv[i]);
359 }
360 for (size_t i = 0; i < envp.size(); i++)
361 {
362 stack_copy_buf(BAN::ConstByteSpan::from(vaddr), envp_vaddr + i * sizeof(uintptr_t));
363 stack_push_str(envp[i]);
364 }
365
366 return stack_region.vaddr() + stack_region.size() - needed_size;
367 }
368

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected