shithub: plan9front

Download patch

ref: 7c62c1270100f694734c1dbdf40c24ea5c2e2e5f
parent: 9de5aac7a29564ac0e1574d17d2589eefe8de3e6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 13 08:20:00 EST 2021

kernel: use 64-bit mask to avoid compiler warning in port/pci.c

--- a/sys/src/9/port/pci.c	Sat Mar 13 07:56:40 2021
+++ b/sys/src/9/port/pci.c	Sat Mar 13 08:20:00 2021
@@ -642,7 +642,7 @@
 			}
 			if(p->rom.size) {
 				if((p->rom.bar & 1) == 0
-				|| !pcivalidbar(p, p->rom.bar & ~0x7FFUL, p->rom.size)){
+				|| !pcivalidbar(p, p->rom.bar & ~0x7FFULL, p->rom.size)){
 					p->rom.bar = 0;
 					pcisetbar(p, PciEBAR0, p->rom.bar);
 				}