Basic VM and other minor improvements.

Not complete, probably not fully debugged or optimized.
This commit is contained in:
Ben Gras
2008-11-19 12:26:10 +00:00
parent c888305e21
commit c078ec0331
273 changed files with 10814 additions and 4305 deletions

34
lib/syslib/vm_exit.c Normal file
View 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);
}