Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
This commit is contained in:
34
lib/syslib/vm_exit.c
Normal file
34
lib/syslib/vm_exit.c
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
#include "syslib.h"
|
||||
|
||||
#include <minix/vm.h>
|
||||
|
||||
/*===========================================================================*
|
||||
* vm_exit *
|
||||
*===========================================================================*/
|
||||
PUBLIC int vm_exit(endpoint_t ep)
|
||||
{
|
||||
message m;
|
||||
int result;
|
||||
|
||||
m.VME_ENDPOINT = ep;
|
||||
|
||||
result = _taskcall(VM_PROC_NR, VM_EXIT, &m);
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================*
|
||||
* vm_willexit *
|
||||
*===========================================================================*/
|
||||
PUBLIC int vm_willexit(endpoint_t ep)
|
||||
{
|
||||
message m;
|
||||
int result;
|
||||
|
||||
m.VMWE_ENDPOINT = ep;
|
||||
|
||||
result = _taskcall(VM_PROC_NR, VM_WILLEXIT, &m);
|
||||
return(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user