From d14d3e08663a7e85315571efc5cfcf166419a092 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 18 Oct 2009 14:56:33 +0000 Subject: [PATCH] _ALIGN has to return u_long, since pointers don't fit into u_int in 64-bit mips. --- sys/mips/include/_align.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/mips/include/_align.h b/sys/mips/include/_align.h index 4484a28aa0b1..f945164d260c 100644 --- a/sys/mips/include/_align.h +++ b/sys/mips/include/_align.h @@ -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_ */