Source-Changes-HG archive

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

[src/trunk]: src/sys Move maxdmap and maxsmap where they belong and make them...



details:   https://anonhg.NetBSD.org/src/rev/1b6c4d1eeb0f
branches:  trunk
changeset: 503466:1b6c4d1eeb0f
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Feb 06 19:54:43 2001 +0000

description:
Move maxdmap and maxsmap where they belong and make them big enough.

diffstat:

 sys/kern/kern_resource.c |  12 ++++++++++--
 sys/uvm/uvm_glue.c       |   5 +----
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r c349178df875 -r 1b6c4d1eeb0f sys/kern/kern_resource.c
--- a/sys/kern/kern_resource.c  Tue Feb 06 19:40:33 2001 +0000
+++ b/sys/kern/kern_resource.c  Tue Feb 06 19:54:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_resource.c,v 1.59 2000/08/20 21:50:11 thorpej Exp $       */
+/*     $NetBSD: kern_resource.c,v 1.60 2001/02/06 19:54:43 eeh Exp $   */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -55,6 +55,15 @@
 #include <uvm/uvm_extern.h>
 
 /*
+ * Maximum process data and stack limits.
+ * They are variables so they are patchable.
+ *
+ * XXXX Do we really need them to be patchable?
+ */
+rlim_t maxdmap = MAXDSIZ;
+rlim_t maxsmap = MAXSSIZ;
+
+/*
  * Resource controls and accounting.
  */
 
@@ -236,7 +245,6 @@
        struct rlimit *limp;
 {
        struct rlimit *alimp;
-       extern unsigned maxdmap, maxsmap;
        struct plimit *newplim;
        int error;
 
diff -r c349178df875 -r 1b6c4d1eeb0f sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Tue Feb 06 19:40:33 2001 +0000
+++ b/sys/uvm/uvm_glue.c        Tue Feb 06 19:54:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.43 2000/11/25 06:27:59 chs Exp $        */
+/*     $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $        */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -97,9 +97,6 @@
  * XXXCDC: do these really belong here?
  */
 
-unsigned maxdmap = MAXDSIZ;    /* kern_resource.c: RLIMIT_DATA max */
-unsigned maxsmap = MAXSSIZ;    /* kern_resource.c: RLIMIT_STACK max */
-
 int readbuffers = 0;           /* allow KGDB to read kern buffer pool */
                                /* XXX: see uvm_kernacc */
 



Home | Main Index | Thread Index | Old Index