Permalink
Browse files

Use the whole 64-bit dma address when setting up the descriptors

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information...
1 parent 9f9f886 commit 0524cacf4d47494989a92986c10e25b46244c1e0 @xl0 committed Aug 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 virtio/virtio.c
View
@@ -571,7 +571,7 @@ virtio_ve_add_cookie(struct vq_entry *qe, ddi_dma_handle_t dma_handle,
flags |= VRING_DESC_F_NEXT;
for (i = 0; i < ncookies; i++) {
- qe->ind_next[i].addr = dma_cookie.dmac_address;
+ qe->ind_next[i].addr = dma_cookie.dmac_laddress;
qe->ind_next[i].len =
(dma_cookie.dmac_size & 0xFFFFFFFF);
qe->ind_next[i].flags = flags;

0 comments on commit 0524cac

Please sign in to comment.