Module Name:    src
Committed By:   rmind
Date:           Mon May 16 18:08:04 UTC 2011

Modified Files:
        src/sys/arch/sparc/sparc: machdep.c

Log Message:
Hack-around sparc/sun4c case, which modifies const maxdmap/maxsmap.
>From he@.  OK mrg@.


To generate a diff of this commit:
cvs rdiff -u -r1.308 -r1.309 src/sys/arch/sparc/sparc/machdep.c

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/sparc/sparc/machdep.c
diff -u src/sys/arch/sparc/sparc/machdep.c:1.308 src/sys/arch/sparc/sparc/machdep.c:1.309
--- src/sys/arch/sparc/sparc/machdep.c:1.308	Mon Apr 18 00:26:11 2011
+++ src/sys/arch/sparc/sparc/machdep.c	Mon May 16 18:08:04 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.308 2011/04/18 00:26:11 rmind Exp $ */
+/*	$NetBSD: machdep.c,v 1.309 2011/05/16 18:08:04 rmind Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.308 2011/04/18 00:26:11 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.309 2011/05/16 18:08:04 rmind Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_sunos.h"
@@ -306,10 +306,10 @@
 
 		/* Clip max data & stack to avoid running into the MMU hole */
 #if MAXDSIZ > 256*1024*1024
-		maxdmap = 256*1024*1024;
+		*(rlim_t*)__UNCONST(&maxdmap) = 256*1024*1024;
 #endif
 #if MAXSSIZ > 256*1024*1024
-		maxsmap = 256*1024*1024;
+		*(rlim_t*)__UNCONST(&maxsmap) = 256*1024*1024;
 #endif
 	}
 

Reply via email to