2010-03-12 16:58:41 +01:00
|
|
|
#include "pm.h"
|
|
|
|
#include <minix/callnr.h>
|
|
|
|
#include <minix/endpoint.h>
|
|
|
|
#include <minix/com.h>
|
|
|
|
#include <minix/vm.h>
|
|
|
|
#include "mproc.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_setmcontext *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_setmcontext()
|
2010-03-12 16:58:41 +01:00
|
|
|
{
|
2014-05-13 16:21:04 +02:00
|
|
|
return sys_setmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
|
2010-03-12 16:58:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_getmcontext *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_getmcontext()
|
2010-03-12 16:58:41 +01:00
|
|
|
{
|
2014-05-13 16:21:04 +02:00
|
|
|
return sys_getmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
|
2010-03-12 16:58:41 +01:00
|
|
|
}
|
|
|
|
|