Make this at least compile on 64 bit platforms. Its been breaking

the alpha tinderbox for far too long.
This commit is contained in:
Andrew Gallatin 2003-07-30 20:09:22 +00:00
parent 770086e47b
commit 4c672cfa18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118225

View File

@ -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