Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2011 20:40:06 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 191079 for review
Message-ID:  <201104052040.p35Ke6kK030397@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@191079?ac=10

Change 191079 by jhb@jhb_jhbbsd on 2011/04/05 20:39:44

	Bah, fix PCI-PCI bridge window allocation.

Affected files ...

.. //depot/projects/pci/sys/dev/pci/pci.c#12 edit

Differences ...

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

@@ -3956,13 +3956,14 @@
 			case PCIR_IOBASEL_1:
 			case PCIR_MEMBASE_1:
 			case PCIR_PMBASEL_1:
-				break;
-			default:
-				goto bar;
+				/*
+				 * XXX: Should we bother creating a resource
+				 * list entry?
+				 */
+				return (bus_generic_alloc_resource(dev, child,
+				    type, rid, start, end, count, flags));
 			}
-			break;
 		}
-	bar:
 #endif
 		/* Reserve resources for this BAR if needed. */
 		rle = resource_list_find(rl, type, *rid);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104052040.p35Ke6kK030397>