Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115844947
D43206.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
930 B
Referenced Files
None
Subscribers
None
D43206.diff
View Options
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/pci/pci_cfgreg.c
@@ -296,7 +296,7 @@
region = &mcfg_regions[mcfg_numregions];
/* XXX: We should make sure this really fits into the direct map. */
- region->base = pmap_mapdev_pciecfg(base, (maxbus + 1 - minbus) << 20);
+ region->base = pmap_mapdev_pciecfg(base + (minbus << 20), (maxbus + 1 - minbus) << 20);
region->domain = domain;
region->minbus = minbus;
region->maxbus = maxbus;
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -574,7 +574,7 @@
sizeof(*mcfg_regions) * (mcfg_numregions + 1), M_DEVBUF, M_WAITOK);
region = &mcfg_regions[mcfg_numregions];
- region->base = base;
+ region->base = base + (minbus << 20);
region->domain = domain;
region->minbus = minbus;
region->maxbus = maxbus;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 11:24 AM (4 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17857066
Default Alt Text
D43206.diff (930 B)
Attached To
Mode
D43206: x86: Adjust base addr for PCI MCFG regions
Attached
Detach File
Event Timeline
Log In to Comment