summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-05 17:01:24 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-05 17:01:24 +0100
commitabcc56afef59bfc98cff48c800735746ff04e486 (patch)
treef402a415f667f77d30039ad80d39602295e03cbf
parent178a9d12c6ead437a85490764e9a5d92e1016d5d (diff)
downloadplan9front-abcc56afef59bfc98cff48c800735746ff04e486.tar.xz
pc/dma, pc/sdide: use uintptr for physical address instead of ulong
-rw-r--r--sys/src/9/pc/dma.c2
-rw-r--r--sys/src/9/pc/sdide.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/pc/dma.c b/sys/src/9/pc/dma.c
index 1b07b4f98..928f7372b 100644
--- a/sys/src/9/pc/dma.c
+++ b/sys/src/9/pc/dma.c
@@ -183,7 +183,7 @@ long
dmasetup(int chan, void *va, long len, int flags)
{
DMA *dp;
- ulong pa;
+ uintptr pa;
uchar mode;
DMAxfer *xp;
diff --git a/sys/src/9/pc/sdide.c b/sys/src/9/pc/sdide.c
index a7626726a..d13f47521 100644
--- a/sys/src/9/pc/sdide.c
+++ b/sys/src/9/pc/sdide.c
@@ -909,9 +909,9 @@ static int
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);