# define VM_RS_MEM_MAKE_VM 1 /* make VM instance */
#define VM_WATCH_EXIT (VM_RQ_BASE+43)
-# define VM_WE_EP m1_i1
#define VM_REMAP_RO (VM_RQ_BASE+44)
/* same args as VM_REMAP */
} mess_lsys_vm_update;
_ASSERT_MSG_SIZE(mess_lsys_vm_update);
+typedef struct {
+ endpoint_t ep;
+ uint8_t padding[52];
+} mess_lsys_vm_watch_exit;
+_ASSERT_MSG_SIZE(mess_lsys_vm_watch_exit);
+
typedef struct {
endpoint_t m_source; /* who sent the message */
int m_type; /* what kind of message is it */
mess_lsys_vm_query_exit m_lsys_vm_query_exit;
mess_lsys_vm_info m_lsys_vm_info;
mess_lsys_vm_update m_lsys_vm_update;
+ mess_lsys_vm_watch_exit m_lsys_vm_watch_exit;
mess_vfs_lchardriver_cancel m_vfs_lchardriver_cancel;
mess_vfs_lchardriver_openclose m_vfs_lchardriver_openclose;
message m;
memset(&m, 0, sizeof(m));
- m.VM_WE_EP = ep;
+ m.m_lsys_vm_watch_exit.ep = ep;
return _taskcall(VM_PROC_NR, VM_WATCH_EXIT, &m);
}
*===========================================================================*/
int do_watch_exit(message *m)
{
- endpoint_t e = m->VM_WE_EP;
+ endpoint_t e = m->m_lsys_vm_watch_exit.ep;
struct vmproc *vmp;
int p;
if(vm_isokendpt(e, &p) != OK) return ESRCH;