summaryrefslogtreecommitdiffstats
path: root/sys/dev/ahb
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2003-07-30 20:09:22 +0000
committergallatin <gallatin@FreeBSD.org>2003-07-30 20:09:22 +0000
commitd9d2001c48385dc1a592e3b8780d968eadcdb60e (patch)
treef24846c3b357985cd0b8b7e7ef1fc7943242a5e5 /sys/dev/ahb
parent68ebedbe5da703ffc38412ec9926ae8319dab4cd (diff)
downloadFreeBSD-src-d9d2001c48385dc1a592e3b8780d968eadcdb60e.zip
FreeBSD-src-d9d2001c48385dc1a592e3b8780d968eadcdb60e.tar.gz
Make this at least compile on 64 bit platforms. Its been breaking
the alpha tinderbox for far too long.
Diffstat (limited to 'sys/dev/ahb')
-rw-r--r--sys/dev/ahb/ahb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c
index 2d2d373..c5c7ff7 100644
--- a/sys/dev/ahb/ahb.c
+++ b/sys/dev/ahb/ahb.c
@@ -140,7 +140,8 @@ static __inline struct ecb*
ahbecbptov(struct ahb_softc *ahb, u_int32_t ecb_addr)
{
return (ahb->ecb_array
- + ((struct ecb*)ecb_addr - (struct ecb*)ahb->ecb_physbase));
+ + ((struct ecb*)(uintptr_t)ecb_addr
+ - (struct ecb*)(uintptr_t)ahb->ecb_physbase));
}
static __inline u_int32_t
OpenPOWER on IntegriCloud