2008-11-19 13:26:10 +01:00
|
|
|
|
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
#include <minix/vm.h>
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* vm_exit *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int vm_exit(endpoint_t ep)
|
2008-11-19 13:26:10 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
int result;
|
|
|
|
|
|
|
|
m.VME_ENDPOINT = ep;
|
|
|
|
|
|
|
|
result = _taskcall(VM_PROC_NR, VM_EXIT, &m);
|
|
|
|
return(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* vm_willexit *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int vm_willexit(endpoint_t ep)
|
2008-11-19 13:26:10 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
int result;
|
|
|
|
|
|
|
|
m.VMWE_ENDPOINT = ep;
|
|
|
|
|
|
|
|
result = _taskcall(VM_PROC_NR, VM_WILLEXIT, &m);
|
|
|
|
return(result);
|
|
|
|
}
|
|
|
|
|