diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 2003-07-30 20:09:22 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2003-07-30 20:09:22 +0000 |
commit | 4c672cfa18659d06afc6467e0f8682f548fdc644 (patch) | |
tree | f24846c3b357985cd0b8b7e7ef1fc7943242a5e5 /sys/dev/ahb | |
parent | 770086e47bec9311ac9d561eefe12ca62fcd892e (diff) | |
download | src-4c672cfa18659d06afc6467e0f8682f548fdc644.tar.gz src-4c672cfa18659d06afc6467e0f8682f548fdc644.zip |
Make this at least compile on 64 bit platforms. Its been breaking
the alpha tinderbox for far too long.
Notes
Notes:
svn path=/head/; revision=118225
Diffstat (limited to 'sys/dev/ahb')
-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 2d2d3731d3be..c5c7ff7dc80c 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 |