Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Build kernel modules with -mno-red-zo...



details:   https://anonhg.NetBSD.org/src/rev/80b3e5f03694
branches:  trunk
changeset: 748962:80b3e5f03694
user:      haad <haad%NetBSD.org@localhost>
date:      Wed Nov 11 23:53:38 2009 +0000

description:
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.

diffstat:

 sys/arch/amd64/include/Makefile.inc |   3 +++
 sys/arch/amd64/include/param.h      |  10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 36ec296b6624 -r 80b3e5f03694 sys/arch/amd64/include/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/amd64/include/Makefile.inc       Wed Nov 11 23:53:38 2009 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/11/11 23:53:38 haad Exp $
+
+CFLAGS+=-mno-red-zone
diff -r 36ec296b6624 -r 80b3e5f03694 sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Wed Nov 11 22:19:22 2009 +0000
+++ b/sys/arch/amd64/include/param.h    Wed Nov 11 23:53:38 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index