_ALIGN has to return u_long, since pointers don't fit into u_int in

64-bit mips.
This commit is contained in:
Warner Losh 2009-10-18 14:56:33 +00:00
parent f107b0cc55
commit d14d3e0866
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=198206

View file

@ -44,10 +44,10 @@
/*
* Round p (pointer or byte index) up to a correctly-aligned value for all
* data types (int, long, ...). The result is u_int and must be cast to
* data types (int, long, ...). The result is u_long and must be cast to
* any desired pointer type.
*/
#define _ALIGNBYTES 7
#define _ALIGN(p) (((u_int)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
#define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
#endif /* !_MIPS_INCLUDE__ALIGN_H_ */