custom message type for VM_GETPHYS

This commit is contained in:
Ben Gras
2014-07-26 13:53:45 +02:00
committed by Lionel Sambuc
parent 324fc1f604
commit 28b5360df7
4 changed files with 15 additions and 9 deletions

View File

@@ -146,13 +146,13 @@ unsigned long vm_getphys(endpoint_t endpt, void *addr)
int r;
memset(&m, 0, sizeof(m));
m.VMPHYS_ENDPT = endpt;
m.VMPHYS_ADDR = (long) addr;
m.m_lc_vm_getphys.endpt = endpt;
m.m_lc_vm_getphys.addr = addr;
r = _syscall(VM_PROC_NR, VM_GETPHYS, &m);
if (r != OK)
return 0;
return m.VMPHYS_RETA;
return (unsigned long) m.m_lc_vm_getphys.ret_addr;
}
u8_t vm_getrefcount(endpoint_t endpt, void *addr)