3 int sys_getmcontext(proc
, mcp
)
4 endpoint_t proc
; /* process retrieving context */
5 mcontext_t
*mcp
; /* where to store context */
7 /* A process wants to store its context in mcp. */
13 m
.PR_CTX_PTR
= (char *) mcp
;
14 r
= _kernel_call(SYS_GETMCONTEXT
, &m
);
18 int sys_setmcontext(proc
, mcp
)
19 endpoint_t proc
; /* process setting context */
20 mcontext_t
*mcp
; /* where to get context from */
22 /* A process wants to restore context stored in ucp. */
28 m
.PR_CTX_PTR
= (char *) mcp
;
29 r
= _kernel_call(SYS_SETMCONTEXT
, &m
);