sdiahci: use 64-bit physical addresses

This commit is contained in:
cinap_lenrek 2020-06-06 16:14:58 +02:00
parent caf8df6478
commit 15e90cedc1

View file

@ -2141,7 +2141,7 @@ static SDev*
iapnp(void) iapnp(void)
{ {
int i, n, nunit, type; int i, n, nunit, type;
uintptr io; uvlong io;
Ctlr *c; Ctlr *c;
Drive *d; Drive *d;
Pcidev *p; Pcidev *p;
@ -2178,9 +2178,8 @@ iapnp(void)
memset(c, 0, sizeof *c); memset(c, 0, sizeof *c);
memset(s, 0, sizeof *s); memset(s, 0, sizeof *s);
c->mmio = vmap(io, p->mem[Abar].size); c->mmio = vmap(io, p->mem[Abar].size);
if(c->mmio == 0){ if(c->mmio == nil){
print("%s: address %#p in use did %.4ux\n", print("%s: can't map %llux\n", Tname(c), io);
Tname(c), io, p->did);
continue; continue;
} }
c->lmmio = (ulong*)c->mmio; c->lmmio = (ulong*)c->mmio;