Module Name: src
Committed By: matt
Date: Wed Feb 1 02:05:51 UTC 2012
Modified Files:
src/sys/arch/mips/include: mips_param.h
Log Message:
Add ALIGNBYTES32/ALIGN32 for netbsd32.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/mips/include/mips_param.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/include/mips_param.h
diff -u src/sys/arch/mips/include/mips_param.h:1.32 src/sys/arch/mips/include/mips_param.h:1.33
--- src/sys/arch/mips/include/mips_param.h:1.32 Tue Jan 24 20:03:37 2012
+++ src/sys/arch/mips/include/mips_param.h Wed Feb 1 02:05:51 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_param.h,v 1.32 2012/01/24 20:03:37 christos Exp $ */
+/* $NetBSD: mips_param.h,v 1.33 2012/02/01 02:05:51 matt Exp $ */
#ifdef _KERNEL
#include <machine/cpu.h>
@@ -40,6 +40,9 @@
#define MACHINE "mips"
#endif
+#define ALIGNBYTES32 (sizeof(double) - 1)
+#define ALIGN32(p) (((uintptr_t)(p) + ALIGNBYTES32) &~ALIGNBYTES32)
+
/*
* On mips, UPAGES is fixed by sys/arch/mips/mips/locore code
* to be the number of per-process-wired kernel-stack pages/PTES.