Fix build on alpha. It used to case an int to a pointer in order to do

pointer arithmetic.  Detour via uintptr_t, since we're generating an
offset not dereferencing them.
This commit is contained in:
Peter Wemm 2002-10-09 09:30:57 +00:00
parent 6220f70ee6
commit ba3d594ddc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104713

View file

@ -134,7 +134,8 @@ static __inline struct aha_ccb *
ahaccbptov(struct aha_softc *aha, u_int32_t ccb_addr)
{
return (aha->aha_ccb_array +
+ ((struct aha_ccb*)ccb_addr-(struct aha_ccb*)aha->aha_ccb_physbase));
+ ((struct aha_ccb*)(uintptr_t)ccb_addr -
(struct aha_ccb*)(uintptr_t)aha->aha_ccb_physbase));
}
static struct aha_ccb* ahagetccb(struct aha_softc *aha);