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"
|
|
|
|
#include "param.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_setmcontext *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_setmcontext()
|
2010-03-12 16:58:41 +01:00
|
|
|
{
|
|
|
|
return sys_setmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_getmcontext *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_getmcontext()
|
2010-03-12 16:58:41 +01:00
|
|
|
{
|
|
|
|
return sys_getmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
|
|
|
}
|
|
|
|
|