diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-29 00:49:07 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-29 00:49:07 +0100 |
commit | 1b8d87555a0905e5a83000066518c85a2a85b204 (patch) | |
tree | 284e5d0d4c1959c751b2ec638e24f86f1c889499 | |
parent | 3c36cadefd5675ad290a607c3be0450eccde1f54 (diff) |
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.
-rw-r--r-- | sys/src/9/pc/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; i<nelem(p->mem); 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); } |