aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-02-05 00:12:08 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-02-05 00:12:08 +0000
commit0765d4d6080588773038f7c7d0d7e91b33e4d20b (patch)
treece31ce0eebd73807a9e3e303cb1686a83ac59313 /sys
parent46d9072b4a485023d0fc008ccbdc4a1eafd615df (diff)
downloadsrc-0765d4d6080588773038f7c7d0d7e91b33e4d20b.tar.gz
src-0765d4d6080588773038f7c7d0d7e91b33e4d20b.zip
Don't cast a pointer to an int that isn't big enough.
Notes
Notes: svn path=/head/; revision=125464
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/isa/isa_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/isa/isa_dma.c b/sys/amd64/isa/isa_dma.c
index d8a13fd23da2..bb13b605b9da 100644
--- a/sys/amd64/isa/isa_dma.c
+++ b/sys/amd64/isa/isa_dma.c
@@ -228,7 +228,7 @@ isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan)
panic("isa_dmastart: channel out of range");
if ((chan < 4 && nbytes > (1<<16))
- || (chan >= 4 && (nbytes > (1<<17) || (u_int)addr & 1)))
+ || (chan >= 4 && (nbytes > (1<<17) || (uintptr_t)addr & 1)))
panic("isa_dmastart: impossible request");
if ((dma_inuse & (1 << chan)) == 0)