From 1b8d87555a0905e5a83000066518c85a2a85b204 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 29 Mar 2020 00:49:07 +0100 Subject: [PATCH] pc, pc64: ignore the 64-bit bar flag when reserving membar a bar with bit 3 set means the bar is the low half of a 64-bit wide bar. --- sys/src/9/pc/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/pc/pci.c b/sys/src/9/pc/pci.c index b908efec5..18f4edaa5 100644 --- a/sys/src/9/pc/pci.c +++ b/sys/src/9/pc/pci.c @@ -1083,7 +1083,7 @@ pcireservemem(void) */ for(p=pciroot; p; p=p->list) for(i=0; imem); i++) - if(p->mem[i].bar && (p->mem[i].bar&1) == 0) + if((p->mem[i].bar&~4) != 0 && (p->mem[i].bar&1) == 0) upareserve(p->mem[i].bar&~0x0F, p->mem[i].size); }