void arch_setup_fork_stack(process_t *child, const struct registers *regs, uintptr_t user_sp)
prepare a forked child's kernel stack so its first arch_context_switch() into it returns to user mode...
Definition arch_context_x86.c:48
void arch_context_switch(uintptr_t *old_sp, uintptr_t new_sp)
switch kernel execution from one process to another.
void arch_setup_initial_stack(process_t *proc, void(*entry_fn)(void))
prepare a process's kernel stack so its first arch_context_switch() into it begins executing entry_fn...
Definition arch_context_x86.c:20