shithub: riscv

Download patch

ref: 5eec707368a91687c5e8ff7941ab6df5bf9e7fa3
parent: cd99666815cb7918d73b73059f9a6398a5b2b601
author: cinap_lenrek <[email protected]>
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: