HomeFreeBSD

virtio-modern: fix PCI common read/write functions on big endian targets

Description

virtio-modern: fix PCI common read/write functions on big endian targets

Virtio modern has the common data organized in little endian, but
on powerpc64 BE it was reading and writing in the wrong endian.

Submitted by: Leonardo Bianconi <leonardo.bianconi@eldorado.org.br>
Reviewed by: bryanv, alfredo
Sponsored by: Eldorado Research Institute (eldorado.org.br)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28947

(cherry picked from commit fb53b42e36a9745d0a33821175a962c7a15eeeaa)

Details

Provenance
alfredoAuthored on May 7 2021, 5:40 AM
Reviewer
bryanv
Differential Revision
D28947: [POWERPC] Switch endian of common dev information
Parents
rGb3931cb0a807: Add more arm64 external abort sources
Branches
Unknown
Tags
Unknown