simplify kernel mapping calls
This commit is contained in:
parent
55bc96d419
commit
54178ad94d
8 changed files with 53 additions and 45 deletions
|
@ -199,6 +199,8 @@ virtio_disk_rw(struct buf *b)
|
|||
buf0.reserved = 0;
|
||||
buf0.sector = sector;
|
||||
|
||||
// buf0 is on a kernel stack, which is not direct mapped,
|
||||
// thus the call to kernelpa().
|
||||
desc[idx[0]].addr = (uint64) kernelpa((uint64) &buf0);
|
||||
desc[idx[0]].len = sizeof(buf0);
|
||||
desc[idx[0]].flags = VRING_DESC_F_NEXT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue