Changeset 9af56b6 in mainline for uspace/lib/virtio/virtio-pci.c


Ignore:
Timestamp:
2018-05-23T21:12:28Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
31cf8c3c
Parents:
85be731
git-author:
Jakub Jermar <jakub@…> (2018-05-23 21:12:24)
git-committer:
Jakub Jermar <jakub@…> (2018-05-23 21:12:28)
Message:

Use little-endian accessors for virtio PIO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio-pci.c

    r85be731 r9af56b6  
    281281        if (vdev->queues) {
    282282                for (unsigned i = 0;
    283                     i < pio_read_16(&vdev->common_cfg->num_queues); i++)
     283                    i < pio_read_le16(&vdev->common_cfg->num_queues); i++)
    284284                        virtio_virtq_teardown(vdev, i);
    285285                free(vdev->queues);
Note: See TracChangeset for help on using the changeset viewer.