pc/pmmc: check pci membar type
This commit is contained in:
parent
e49d187dff
commit
7347012d42
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ pmmcinit(void)
|
|||
}
|
||||
}
|
||||
|
||||
if(p == nil || p->mem[0].size < 256)
|
||||
if(p == nil || p->mem[0].size < 256 || (p->mem[0].bar & 1) != 0)
|
||||
return -1;
|
||||
|
||||
pmmc->mmio = vmap(p->mem[0].bar & ~0x0F, p->mem[0].size);
|
||||
|
|
Loading…
Reference in a new issue