. rename message fields to endpoint variants

. remove or optionalify some pci debugging stuff
This commit is contained in:
Ben Gras
2006-03-03 09:44:55 +00:00
parent 7550304e19
commit 5d7f5fccf5
28 changed files with 41 additions and 34 deletions

View File

@@ -1,14 +1,18 @@
#include "syslib.h"
PUBLIC int sys_fork(parent, child)
PUBLIC int sys_fork(parent, child, child_endpoint)
int parent; /* process doing the fork */
int child; /* which proc has been created by the fork */
int *child_endpoint;
{
/* A process has forked. Tell the kernel. */
message m;
int r;
m.PR_PPROC_NR = parent;
m.PR_PROC_NR = child;
return(_taskcall(SYSTASK, SYS_FORK, &m));
m.PR_ENDPT = parent;
m.PR_SLOT = child;
r = _taskcall(SYSTASK, SYS_FORK, &m);
*child_endpoint = m.PR_ENDPT;
return r;
}