diff options
Diffstat (limited to 'sys/arch/mips64/include/param.h')
-rw-r--r-- | sys/arch/mips64/include/param.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/arch/mips64/include/param.h b/sys/arch/mips64/include/param.h index 4c87da6be83..3347a9042fe 100644 --- a/sys/arch/mips64/include/param.h +++ b/sys/arch/mips64/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.29 2011/04/07 15:45:17 miod Exp $ */ +/* $OpenBSD: param.h,v 1.30 2011/09/08 03:40:32 guenther Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -44,14 +44,9 @@ #include <machine/cpu.h> #endif -/* - * Round p (pointer or byte index) up to a correctly-aligned value for all - * 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_long)(p) + ALIGNBYTES) &~ ALIGNBYTES) -#define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof (t) - 1)) == 0) +#define ALIGNBYTES _ALIGNBYTES +#define ALIGN(p) _ALIGN(p) +#define ALIGNED_POINTER(p,t) _ALIGNED_POINTER(p,t) #define PAGE_SIZE (1 << PAGE_SHIFT) #define PAGE_MASK (PAGE_SIZE - 1) |