Changes for restarting disk drivers and new interface between PM and FS.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include "syslib.h"
|
||||
|
||||
PUBLIC int sys_fork(parent, child, child_endpoint)
|
||||
PUBLIC int sys_fork(parent, child, child_endpoint, map_ptr)
|
||||
int parent; /* process doing the fork */
|
||||
int child; /* which proc has been created by the fork */
|
||||
int *child_endpoint;
|
||||
struct mem_map *map_ptr;
|
||||
{
|
||||
/* A process has forked. Tell the kernel. */
|
||||
|
||||
@@ -12,6 +13,7 @@ int *child_endpoint;
|
||||
|
||||
m.PR_ENDPT = parent;
|
||||
m.PR_SLOT = child;
|
||||
m.PR_MEM_PTR = map_ptr;
|
||||
r = _taskcall(SYSTASK, SYS_FORK, &m);
|
||||
*child_endpoint = m.PR_ENDPT;
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user