b900311656
- headers use the endpoint_t in syslib.h and the implmentation was using int instead. Both uses endpoint_t now - every variable named like proc, proc_nr or proc_nr_e of type endpoint_t has name proc_ep now - endpoint_t defined as u32_t not int
18 lines
444 B
C
Executable file
18 lines
444 B
C
Executable file
#include "syslib.h"
|
|
|
|
PUBLIC int sys_exec(proc_ep, ptr, prog_name, initpc)
|
|
endpoint_t proc_ep; /* process that did exec */
|
|
char *ptr; /* new stack pointer */
|
|
char *prog_name; /* name of the new program */
|
|
vir_bytes initpc;
|
|
{
|
|
/* A process has exec'd. Tell the kernel. */
|
|
|
|
message m;
|
|
|
|
m.PR_ENDPT = proc_ep;
|
|
m.PR_STACK_PTR = ptr;
|
|
m.PR_NAME_PTR = prog_name;
|
|
m.PR_IP_PTR = (char *)initpc;
|
|
return(_taskcall(SYSTASK, SYS_EXEC, &m));
|
|
}
|