Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115608872
D36888.id111481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
574 B
Referenced Files
None
Subscribers
None
D36888.id111481.diff
View Options
diff --git a/usr.sbin/bhyve/pci_xhci.c b/usr.sbin/bhyve/pci_xhci.c
--- a/usr.sbin/bhyve/pci_xhci.c
+++ b/usr.sbin/bhyve/pci_xhci.c
@@ -2136,6 +2136,7 @@
static uint64_t
pci_xhci_portregs_read(struct pci_xhci_softc *sc, uint64_t offset)
{
+ struct pci_xhci_portregs *portregs;
int port;
uint32_t *p;
@@ -2154,7 +2155,8 @@
offset = (offset - 0x3F0) % 0x10;
- p = &sc->portregs[port].portsc;
+ portregs = XHCI_PORTREG_PTR(sc, port);
+ p = &portregs->portsc;
p += offset / sizeof(uint32_t);
DPRINTF(("pci_xhci: portregs read offset 0x%lx port %u -> 0x%x",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 10:51 PM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17810175
Default Alt Text
D36888.id111481.diff (574 B)
Attached To
Mode
D36888: bhyve: Use XHCI_PORTREG_PTR in one place that open-coded it.
Attached
Detach File
Event Timeline
Log In to Comment