xref: /minix3/minix/servers/pm/mcontext.c (revision 637f688f0d4ccff0fa8a6ddafcd1d89fdfbc462d)
1433d6423SLionel Sambuc #include "pm.h"
2433d6423SLionel Sambuc #include <minix/callnr.h>
3433d6423SLionel Sambuc #include <minix/endpoint.h>
4433d6423SLionel Sambuc #include <minix/com.h>
5433d6423SLionel Sambuc #include <minix/vm.h>
6433d6423SLionel Sambuc #include "mproc.h"
7433d6423SLionel Sambuc 
8433d6423SLionel Sambuc 
9433d6423SLionel Sambuc /*===========================================================================*
10433d6423SLionel Sambuc  *				do_setmcontext				     *
11433d6423SLionel Sambuc  *===========================================================================*/
12*637f688fSRichard Sailer int
do_setmcontext(void)13*637f688fSRichard Sailer do_setmcontext(void)
14433d6423SLionel Sambuc {
15433d6423SLionel Sambuc   return sys_setmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
16433d6423SLionel Sambuc }
17433d6423SLionel Sambuc 
18433d6423SLionel Sambuc 
19433d6423SLionel Sambuc /*===========================================================================*
20433d6423SLionel Sambuc  *				do_getmcontext				     *
21433d6423SLionel Sambuc  *===========================================================================*/
22*637f688fSRichard Sailer int
do_getmcontext(void)23*637f688fSRichard Sailer do_getmcontext(void)
24433d6423SLionel Sambuc {
25433d6423SLionel Sambuc   return sys_getmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
26433d6423SLionel Sambuc }
27433d6423SLionel Sambuc 
28