27 lines
722 B
C
27 lines
722 B
C
|
#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 *
|
||
|
*===========================================================================*/
|
||
|
PUBLIC int do_setmcontext()
|
||
|
{
|
||
|
return sys_setmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
||
|
}
|
||
|
|
||
|
|
||
|
/*===========================================================================*
|
||
|
* do_getmcontext *
|
||
|
*===========================================================================*/
|
||
|
PUBLIC int do_getmcontext()
|
||
|
{
|
||
|
return sys_getmcontext(who_e, (mcontext_t *) m_in.m1_p1);
|
||
|
}
|
||
|
|