Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Hack-around sparc/sun4c case, which mod...
details: https://anonhg.NetBSD.org/src/rev/d687ac62801d
branches: trunk
changeset: 765036:d687ac62801d
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 16 18:08:04 2011 +0000
description:
Hack-around sparc/sun4c case, which modifies const maxdmap/maxsmap.
>From he@. OK mrg@.
diffstat:
sys/arch/sparc/sparc/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 013c89556370 -r d687ac62801d sys/arch/sparc/sparc/machdep.c
--- a/sys/arch/sparc/sparc/machdep.c Mon May 16 17:21:37 2011 +0000
+++ b/sys/arch/sparc/sparc/machdep.c Mon May 16 18:08:04 2011 +0000
@@ -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
}
Home |
Main Index |
Thread Index |
Old Index