diff options
author | gallatin <gallatin@FreeBSD.org> | 2003-07-30 20:09:22 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2003-07-30 20:09:22 +0000 |
commit | d9d2001c48385dc1a592e3b8780d968eadcdb60e (patch) | |
tree | f24846c3b357985cd0b8b7e7ef1fc7943242a5e5 /sys | |
parent | 68ebedbe5da703ffc38412ec9926ae8319dab4cd (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/ahb/ahb.c | 3 |
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 |