shithub: riscv

Download patch

ref: abcc56afef59bfc98cff48c800735746ff04e486
parent: 178a9d12c6ead437a85490764e9a5d92e1016d5d
author: cinap_lenrek <[email protected]>
date: Sat Dec 5 12:01:24 EST 2020

pc/dma, pc/sdide: use uintptr for physical address instead of ulong

--- a/sys/src/9/pc/dma.c
+++ b/sys/src/9/pc/dma.c
@@ -183,7 +183,7 @@
 dmasetup(int chan, void *va, long len, int flags)
 {
 	DMA *dp;
-	ulong pa;
+	uintptr pa;
 	uchar mode;
 	DMAxfer *xp;
 
--- a/sys/src/9/pc/sdide.c
+++ b/sys/src/9/pc/sdide.c
@@ -909,9 +909,9 @@
 atadmasetup(Drive* drive, int len)
 {
 	Prd *prd;
-	ulong pa;
 	Ctlr *ctlr;
-	int bmiba, bmisx, count, i, span;
+	uintptr pa, span;
+	int bmiba, bmisx, count, i;
 
 	ctlr = drive->ctlr;
 	pa = PCIWADDR(drive->data);