Module Name:    src
Committed By:   haad
Date:           Wed Nov 11 23:53:39 UTC 2009

Modified Files:
        src/sys/arch/amd64/include: param.h
Added Files:
        src/sys/arch/amd64/include: Makefile.inc

Log Message:
Build kernel modules with -mno-red-zone like kernel is build. This fixes
frequent panics in amd64 zfs module. This should also fix problem reported
by Nicolas Joly in:

http://mail-index.netbsd.org/port-amd64/2008/12/09/msg000646.html

Thanks to cube@ for his help with this.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/amd64/include/Makefile.inc
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/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/amd64/include/param.h
diff -u src/sys/arch/amd64/include/param.h:1.10 src/sys/arch/amd64/include/param.h:1.11
--- src/sys/arch/amd64/include/param.h:1.10	Sat Dec 20 12:42:36 2008
+++ src/sys/arch/amd64/include/param.h	Wed Nov 11 23:53:39 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.10 2008/12/20 12:42:36 ad Exp $	*/
+/*	$NetBSD: param.h,v 1.11 2009/11/11 23:53:39 haad Exp $	*/
 
 #ifdef __x86_64__
 
@@ -56,12 +56,12 @@
 #define	MAXPHYS		(64 * 1024)	/* max raw I/O transfer size */
 #endif
 
-#define	SSIZE		1		/* initial stack size/NBPG */
-#define	SINCR		1		/* increment of stack/NBPG */
+#define	SSIZE		8		/* initial stack size/NBPG */
+#define	SINCR		2		/* increment of stack/NBPG */
 #ifdef DIAGNOSTIC
-#define	UPAGES		4		/* pages of u-area (1 for redzone) */
+#define	UPAGES		16		/* pages of u-area (1 for redzone) */
 #else
-#define	UPAGES		3		/* pages of u-area */
+#define	UPAGES		12		/* pages of u-area */
 #endif
 #define	USPACE		(UPAGES * NBPG)	/* total size of u-area */
 #define	INTRSTACKSIZE	4096

Added files:

Index: src/sys/arch/amd64/include/Makefile.inc
diff -u /dev/null src/sys/arch/amd64/include/Makefile.inc:1.1
--- /dev/null	Wed Nov 11 23:53:39 2009
+++ src/sys/arch/amd64/include/Makefile.inc	Wed Nov 11 23:53:38 2009
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/11/11 23:53:38 haad Exp $
+
+CFLAGS+=-mno-red-zone

Reply via email to