1 #include <lunaix/exec.h>
2 #include <lunaix/mm/valloc.h>
3 #include <klibc/string.h>
6 exec_arch_prepare_entry(struct thread* thread, struct exec_host* container)
8 struct hart_state* hstate;
10 hstate = thread->hstate;
12 #ifdef CONFIG_ARCH_X86_64
13 hstate->execp->rip = container->exe.entry;
14 hstate->execp->rsp = container->stack_top;
17 hstate->execp->eip = container->exe.entry;
18 hstate->execp->esp = container->stack_top;