PERFORCE change 51597 for review

Marcel Moolenaar marcel at FreeBSD.org
Thu Apr 22 20:22:00 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=51597

Change 51597 by marcel at marcel_nfs on 2004/04/22 20:21:30

	Provide a stopgap fix for the sparc64 ebus breakage
	due to the PCI mega-commit. Soon to appear in a CVS
	repository near you.

Affected files ...

.. //depot/projects/gdb/sys/dev/pci/pci.c#7 edit

Differences ...

==== //depot/projects/gdb/sys/dev/pci/pci.c#7 (text+ko) ====

@@ -825,6 +825,12 @@
 	if (base == 0)
 		return 1;
 
+	/* Sun EBus bridges contain the ranges for the devices beyond them */
+	if ((pci_get_class(dev) == PCIC_BRIDGE) &&
+	    (pci_get_vendor(dev) == 0x108e) &&
+	    (pci_get_device(dev) == 0x1000 || pci_get_device(dev) == 0x1100))
+		return 1;
+
 	start = base;
 	end = base + (1 << ln2size) - 1;
 	count = 1 << ln2size;


More information about the p4-projects mailing list