give sys_fork() a real endpoint_t * arg

This commit is contained in:
Ben Gras
2009-09-23 10:48:57 +00:00
parent 789c8a6ee4
commit 0d7b967413
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
PUBLIC int sys_fork(parent, child, child_endpoint, map_ptr, flags, msgaddr)
endpoint_t parent; /* process doing the fork */
endpoint_t child; /* which proc has been created by the fork */
int *child_endpoint;
endpoint_t *child_endpoint;
struct mem_map *map_ptr;
u32_t flags;
vir_bytes *msgaddr;
@@ -19,6 +19,6 @@ vir_bytes *msgaddr;
m.PR_FORK_FLAGS = flags;
r = _taskcall(SYSTASK, SYS_FORK, &m);
*child_endpoint = m.PR_ENDPT;
*msgaddr = m.PR_FORK_MSGADDR;
*msgaddr = (vir_bytes) m.PR_FORK_MSGADDR;
return r;
}