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/drv/nic/virtio-net/virtio-net.c

    r85be731 r9af56b6  
    123123         * Discover and configure the virtqueues
    124124         */
    125         uint16_t num_queues = pio_read_16(&cfg->num_queues);
     125        uint16_t num_queues = pio_read_le16(&cfg->num_queues);
    126126        if (num_queues != VIRTIO_NET_NUM_QUEUES) {
    127127                ddf_msg(LVL_NOTE, "Unsupported number of virtqueues: %u",
Note: See TracChangeset for help on using the changeset viewer.