shithub: riscv

Download patch

ref: 15e90cedc17dd2501708428da62c7e54086cf3b1
parent: caf8df647886963848a2e266124de54fcc737247
author: cinap_lenrek <[email protected]>
date: Sat Jun 6 12:14:58 EDT 2020

sdiahci: use 64-bit physical addresses

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