9 vm_map_phys(endpoint_t who
, void *phaddr
, size_t len
)
14 memset(&m
, 0, sizeof(m
));
16 m
.VMMP_PHADDR
= phaddr
;
19 r
= _taskcall(VM_PROC_NR
, VM_MAP_PHYS
, &m
);
21 if (r
!= OK
) return MAP_FAILED
;
23 return (void *) m
.VMMP_VADDR_REPLY
;
27 vm_unmap_phys(endpoint_t who
, void *vaddr
, size_t len
)
31 memset(&m
, 0, sizeof(m
));
35 return _taskcall(VM_PROC_NR
, VM_UNMAP_PHYS
, &m
);