Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107152853
D28947.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28947.diff
View Options
diff --git a/sys/dev/virtio/pci/virtio_pci_modern.c b/sys/dev/virtio/pci/virtio_pci_modern.c
--- a/sys/dev/virtio/pci/virtio_pci_modern.c
+++ b/sys/dev/virtio/pci/virtio_pci_modern.c
@@ -1315,13 +1315,15 @@
static uint16_t
vtpci_modern_read_common_2(struct vtpci_modern_softc *sc, bus_size_t off)
{
- return (bus_read_2(&sc->vtpci_common_res_map.vtrm_map, off));
+ return virtio_htog16(true,
+ bus_read_2(&sc->vtpci_common_res_map.vtrm_map, off));
}
static uint32_t
vtpci_modern_read_common_4(struct vtpci_modern_softc *sc, bus_size_t off)
{
- return (bus_read_4(&sc->vtpci_common_res_map.vtrm_map, off));
+ return virtio_htog32(true,
+ bus_read_4(&sc->vtpci_common_res_map.vtrm_map, off));
}
static void
@@ -1335,14 +1337,16 @@
vtpci_modern_write_common_2(struct vtpci_modern_softc *sc, bus_size_t off,
uint16_t val)
{
- bus_write_2(&sc->vtpci_common_res_map.vtrm_map, off, val);
+ bus_write_2(&sc->vtpci_common_res_map.vtrm_map,
+ off, virtio_gtoh16(true, val));
}
static void
vtpci_modern_write_common_4(struct vtpci_modern_softc *sc, bus_size_t off,
uint32_t val)
{
- bus_write_4(&sc->vtpci_common_res_map.vtrm_map, off, val);
+ bus_write_4(&sc->vtpci_common_res_map.vtrm_map,
+ off, virtio_gtoh32(true, val));
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 10:33 PM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15758477
Default Alt Text
D28947.diff (1 KB)
Attached To
Mode
D28947: [POWERPC] Switch endian of common dev information
Attached
Detach File
Event Timeline
Log In to Comment