12 int setmcontext(const mcontext_t
*mcp
)
16 memset(&m
, 0, sizeof(m
));
17 m
.m_lc_pm_mcontext
.ctx
= (vir_bytes
)mcp
;
19 return(_syscall(PM_PROC_NR
, PM_SETMCONTEXT
, &m
));
23 int getmcontext(mcontext_t
*mcp
)
27 memset(&m
, 0, sizeof(m
));
28 m
.m_lc_pm_mcontext
.ctx
= (vir_bytes
)mcp
;
30 return(_syscall(PM_PROC_NR
, PM_GETMCONTEXT
, &m
));