Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include PowerPC wants 16-byte aligned stack...



details:   https://anonhg.NetBSD.org/src/rev/29f8633e9fea
branches:  trunk
changeset: 773265:29f8633e9fea
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 30 06:04:32 2012 +0000

description:
PowerPC wants 16-byte aligned stacks (for AltiVec).

diffstat:

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

diffs (19 lines):

diff -r a21d54811ba7 -r 29f8633e9fea sys/arch/powerpc/include/param.h
--- a/sys/arch/powerpc/include/param.h  Mon Jan 30 06:02:12 2012 +0000
+++ b/sys/arch/powerpc/include/param.h  Mon Jan 30 06:04:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.26 2012/01/24 20:03:37 christos Exp $      */
+/*     $NetBSD: param.h,v 1.27 2012/01/30 06:04:32 matt Exp $  */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -53,6 +53,9 @@
 #define        MACHINE_ARCH    "powerpc"
 #define        MID_MACHINE     MID_POWERPC
 
+/* PowerPC-specific macro to align a stack pointer (downwards). */
+#define        STACK_ALIGNBYTES        (16 - 1)        /* AltiVec */
+
 #ifdef PPC_IBM4XX
 #define        PGSHIFT         14      /* Use 16KB to reduce TLB thrashing */
 #define        UPAGES          1



Home | Main Index | Thread Index | Old Index