shithub: riscv

Download patch

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

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

--- a/sys/src/9/port/pci.c
+++ b/sys/src/9/port/pci.c
@@ -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);
 				}