Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Add ALIGNBYTES32/ALIGN32 for netbsd32.



details:   https://anonhg.NetBSD.org/src/rev/b14e1cd3dc72
branches:  trunk
changeset: 773369:b14e1cd3dc72
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Feb 01 02:05:51 2012 +0000

description:
Add ALIGNBYTES32/ALIGN32 for netbsd32.

diffstat:

 sys/arch/mips/include/mips_param.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 10c77d307529 -r b14e1cd3dc72 sys/arch/mips/include/mips_param.h
--- a/sys/arch/mips/include/mips_param.h        Wed Feb 01 02:05:14 2012 +0000
+++ b/sys/arch/mips/include/mips_param.h        Wed Feb 01 02:05:51 2012 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index