Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102949863
D29604.id86910.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.id86910.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
Wed, Nov 20, 2:46 AM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14728406
Default Alt Text
D29604.id86910.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