More correctly use cp_grant_id_t.
More correctly use vir_bytes. More correctly use endpoint_t.
This commit is contained in:
@@ -67,7 +67,7 @@ PUBLIC int do_sdevio(struct proc * caller, message *m_ptr)
|
||||
if((m_ptr->DIO_REQUEST & _DIO_SAFEMASK) == _DIO_SAFE) {
|
||||
/* Map grant address to physical address. */
|
||||
if(verify_grant(proc_nr_e, caller->p_endpoint,
|
||||
(vir_bytes) m_ptr->DIO_VEC_ADDR,
|
||||
(cp_grant_id_t) m_ptr->DIO_VEC_ADDR,
|
||||
count,
|
||||
req_dir == _DIO_INPUT ? CPF_WRITE : CPF_READ,
|
||||
(vir_bytes) m_ptr->DIO_OFFSET,
|
||||
|
||||
@@ -401,7 +401,7 @@ vir_bytes bytes; /* # of bytes to be copied */
|
||||
u32_t phys = 0;
|
||||
|
||||
if(seg == MEM_GRANT) {
|
||||
return umap_grant(rp, vir_addr, bytes);
|
||||
return umap_grant(rp, (cp_grant_id_t) vir_addr, bytes);
|
||||
}
|
||||
|
||||
if(!(linear = umap_local(rp, seg, vir_addr, bytes))) {
|
||||
|
||||
Reference in New Issue
Block a user