Changeset 9afd2a8 in mainline for uspace/lib/virtio/virtio.c
- Timestamp:
- 2018-06-22T20:27:31Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5609d3c
- Parents:
- b8ef198b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/virtio/virtio.c
rb8ef198b r9afd2a8 64 64 65 65 uint16_t idx = pio_read_le16(&q->avail->idx); 66 pio_write_le16(&q->avail->ring[idx ], descno);66 pio_write_le16(&q->avail->ring[idx % q->queue_size], descno); 67 67 write_barrier(); 68 pio_write_le16(&q->avail->idx, (idx + 1) % q->queue_size);68 pio_write_le16(&q->avail->idx, idx + 1); 69 69 write_barrier(); 70 70 pio_write_le16(q->notify, num);
Note:
See TracChangeset
for help on using the changeset viewer.