Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158995880
D29604.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
D29604.diff
View Options
diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c
--- a/sys/dev/pci/pci_user.c
+++ b/sys/dev/pci/pci_user.c
@@ -878,6 +878,11 @@
if (!PCI_BAR_MEM(pm->pm_value))
return (EIO);
membase = pm->pm_value & PCIM_BAR_MEM_BASE;
+ error = BUS_TRANSLATE_RESOURCE(pcidev, SYS_RES_MEMORY, membase,
+ &membase);
+ if (error != 0)
+ return (error);
+
pbase = trunc_page(membase);
plen = round_page(membase + ((pci_addr_t)1 << pm->pm_size)) -
pbase;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 9, 7:25 PM (1 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33835282
Default Alt Text
D29604.diff (468 B)
Attached To
Mode
D29604: pci_user.c: Call bus_translate_resource before mmaping bars
Attached
Detach File
Event Timeline
Log In to Comment