custom message for vm_query_exit
This commit is contained in:
parent
93422a1f4c
commit
0881781e60
4 changed files with 9 additions and 3 deletions
|
@ -788,7 +788,6 @@
|
|||
# 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 */
|
||||
|
|
|
@ -1758,6 +1758,12 @@ typedef struct {
|
|||
} 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 */
|
||||
|
@ -1983,6 +1989,7 @@ typedef struct {
|
|||
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;
|
||||
|
|
|
@ -32,6 +32,6 @@ vm_watch_exit(endpoint_t ep)
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ out:
|
|||
*===========================================================================*/
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue