git: 9front

Download patch

ref: b128a8e42e4d72ebac017c081c85f7cedd1ad507
parent: f2fc14b919943c3838aa37f0a6abb2d586634ad7
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Aug 6 19:56:10 EDT 2012

pci.c: reserve pci membars after assinging them for *nobios= option

--- a/sys/src/9/pc/pci.c
+++ b/sys/src/9/pc/pci.c
@@ -1050,11 +1050,10 @@
 		pcibusmap(pciroot, &mema, &ioa, 1);
 		DBG("Sizes2: mem=%lux io=%lux\n", mema, ioa);
 
-		unlock(&pcicfginitlock);
-		return;
+		goto out;
 	}
 
-	if (!nopcirouting)
+	if(!nopcirouting)
 		pcirouting();
 
 out:
--