. rename message fields to endpoint variants
. remove or optionalify some pci debugging stuff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user