6 vm_memctl(endpoint_t ep
, int req
, void** addr
, size_t *len
)
11 memset(&m
, 0, sizeof(m
));
12 m
.VM_RS_CTL_ENDPT
= ep
;
13 m
.VM_RS_CTL_REQ
= req
;
14 m
.VM_RS_CTL_ADDR
= addr
? *addr
: 0;
15 m
.VM_RS_CTL_LEN
= len
? *len
: 0;
17 r
= _taskcall(VM_PROC_NR
, VM_RS_MEMCTL
, &m
);
22 *addr
= m
.VM_RS_CTL_ADDR
;
25 *len
= m
.VM_RS_CTL_LEN
;