4 #include <minix/syslib.h>
10 void *vm_map_phys(endpoint_t who
, void *phaddr
, size_t len
)
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
;
26 int vm_unmap_phys(endpoint_t who
, void *vaddr
, size_t len
)
33 return _taskcall(VM_PROC_NR
, VM_UNMAP_PHYS
, &m
);