Module Name: src
Committed By: matt
Date: Mon Jan 30 06:04:32 UTC 2012
Modified Files:
src/sys/arch/powerpc/include: param.h
Log Message:
PowerPC wants 16-byte aligned stacks (for AltiVec).
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/powerpc/include/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/powerpc/include/param.h
diff -u src/sys/arch/powerpc/include/param.h:1.26 src/sys/arch/powerpc/include/param.h:1.27
--- src/sys/arch/powerpc/include/param.h:1.26 Tue Jan 24 20:03:37 2012
+++ src/sys/arch/powerpc/include/param.h Mon Jan 30 06:04:32 2012
@@ -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