VM: full munmap
[minix.git] / lib / libsys / sys_exec.c
blobcd84d6a39b605d82e4df5baffa1e25152a244ec3
1 #include "syslib.h"
3 int sys_exec(proc_ep, ptr, prog_name, initpc)
4 endpoint_t proc_ep; /* process that did exec */
5 char *ptr; /* new stack pointer */
6 char *prog_name; /* name of the new program */
7 vir_bytes initpc;
9 /* A process has exec'd. Tell the kernel. */
11 message m;
13 m.PR_ENDPT = proc_ep;
14 m.PR_STACK_PTR = ptr;
15 m.PR_NAME_PTR = prog_name;
16 m.PR_IP_PTR = (char *)initpc;
17 return(_kernel_call(SYS_EXEC, &m));