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
|
|
|
{
|
2013-11-04 22:48:08 +01:00
|
|
|
return sys_setmcontext(who_e, (mcontext_t *) m_in.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
|
|
|
{
|
2013-11-04 22:48:08 +01:00
|
|
|
return sys_getmcontext(who_e, (mcontext_t *) m_in.PM_MCONTEXT_CTX);
|
2010-03-12 16:58:41 +01:00
|
|
|
}
|
|
|
|
|