custom message type for VM_GETREF

This commit is contained in:
Ben Gras
2014-07-28 17:06:17 +02:00
committed by sambuc
parent 28b5360df7
commit 01a50f57d8
4 changed files with 15 additions and 9 deletions
+3 -3
View File
@@ -471,8 +471,8 @@ int do_get_refcount(message *m)
u8_t cnt;
vir_bytes addr;
target = m->VMREFCNT_ENDPT;
addr = m->VMREFCNT_ADDR;
target = m->m_lsys_vm_getref.endpt;
addr = (vir_bytes) m->m_lsys_vm_getref.addr;
if ((r = vm_isokendpt(target, &n)) != OK)
return EINVAL;
@@ -481,7 +481,7 @@ int do_get_refcount(message *m)
r = map_get_ref(vmp, addr, &cnt);
m->VMREFCNT_RETC = cnt;
m->m_lsys_vm_getref.retc = cnt;
return r;
}