3 PUBLIC
int sys_fork(parent
, child
, child_endpoint
, map_ptr
, flags
, msgaddr
)
4 endpoint_t parent
; /* process doing the fork */
5 endpoint_t child
; /* which proc has been created by the fork */
6 endpoint_t
*child_endpoint
;
7 struct mem_map
*map_ptr
;
11 /* A process has forked. Tell the kernel. */
18 m
.PR_MEM_PTR
= (char *) map_ptr
;
19 m
.PR_FORK_FLAGS
= flags
;
20 r
= _kernel_call(SYS_FORK
, &m
);
21 *child_endpoint
= m
.PR_ENDPT
;
22 *msgaddr
= (vir_bytes
) m
.PR_FORK_MSGADDR
;