phunix/minix/servers/pm/mcontext.c
Richard Sailer 637f688f0d PM: Convert K&R C -> ANSI C
Aditionally this removes all trailing whitespaces in pm server code
using: sed -i 's/[[:space:]]*$//' *.c

Change-Id: Ie44162fd56cd7042f4f0cc7bd7314b17ea128761
2016-07-08 21:24:33 +02:00

28 lines
697 B
C

#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(void)
{
return sys_setmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
}
/*===========================================================================*
* do_getmcontext *
*===========================================================================*/
int
do_getmcontext(void)
{
return sys_getmcontext(who_e, m_in.m_lc_pm_mcontext.ctx);
}