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