Repository navigation
Expand file tree
/
Copy pathmcontext.c
More file actions
25 lines (20 loc) · 689 Bytes
/
Copy pathmcontext.c
File metadata and controls
25 lines (20 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "pm.h"
#include <minix/callnr.h>
#include <minix/endpoint.h>
#include <minix/com.h>
#include <minix/vm.h>
#include "mproc.h"
/*===========================================================================*
* do_setmcontext *
*===========================================================================*/
int do_setmcontext()
{
return sys_setmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
}
/*===========================================================================*
* do_getmcontext *
*===========================================================================*/
int do_getmcontext()
{
return sys_getmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
}