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