Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Use maxdmap and maxsmap instead of MAXDSIZ and MAXSSIZ.



details:   https://anonhg.NetBSD.org/src/rev/2b4f331ca702
branches:  trunk
changeset: 565338:2b4f331ca702
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Apr 04 18:21:48 2004 +0000

description:
Use maxdmap and maxsmap instead of MAXDSIZ and MAXSSIZ.

diffstat:

 sys/uvm/uvm_glue.c  |  8 ++++----
 sys/uvm/uvm_param.h |  5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r d7ec1ff9d416 -r 2b4f331ca702 sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Sun Apr 04 18:18:27 2004 +0000
+++ b/sys/uvm/uvm_glue.c        Sun Apr 04 18:21:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.78 2004/03/24 07:50:48 junyoung Exp $   */
+/*     $NetBSD: uvm_glue.c,v 1.79 2004/04/04 18:21:48 pk Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.78 2004/03/24 07:50:48 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.79 2004/04/04 18:21:48 pk Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_kstack.h"
@@ -422,9 +422,9 @@
         */
 
        p->p_rlimit[RLIMIT_STACK].rlim_cur = DFLSSIZ;
-       p->p_rlimit[RLIMIT_STACK].rlim_max = MAXSSIZ;
+       p->p_rlimit[RLIMIT_STACK].rlim_max = maxsmap;
        p->p_rlimit[RLIMIT_DATA].rlim_cur = DFLDSIZ;
-       p->p_rlimit[RLIMIT_DATA].rlim_max = MAXDSIZ;
+       p->p_rlimit[RLIMIT_DATA].rlim_max = maxdmap;
        p->p_rlimit[RLIMIT_RSS].rlim_cur = ptoa(uvmexp.free);
 }
 
diff -r d7ec1ff9d416 -r 2b4f331ca702 sys/uvm/uvm_param.h
--- a/sys/uvm/uvm_param.h       Sun Apr 04 18:18:27 2004 +0000
+++ b/sys/uvm/uvm_param.h       Sun Apr 04 18:21:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_param.h,v 1.18 2003/08/07 16:34:50 agc Exp $       */
+/*     $NetBSD: uvm_param.h,v 1.19 2004/04/04 18:21:49 pk Exp $        */
 
 /*
  * Copyright (c) 1991, 1993
@@ -72,6 +72,7 @@
 #endif
 #ifdef _KERNEL
 #include <machine/vmparam.h>
+#include <sys/resourcevar.h>
 #endif
 
 #if defined(_KERNEL)
@@ -236,7 +237,7 @@
 # if defined(VM_DEFAULT_ADDRESS)
 #  error "Default vm address should not be defined here"
 # else /* VM_DEFAULT_ADDRESS */
-#  define VM_DEFAULT_ADDRESS(da, sz) round_page((vaddr_t)(da) + MAXDSIZ)
+#  define VM_DEFAULT_ADDRESS(da, sz) round_page((vaddr_t)(da) + (vsize_t)maxdmap)
 # endif /* VM_DEFAULT_ADDRESS */
 #endif /* !__USING_TOPDOWN_VM */
 



Home | Main Index | Thread Index | Old Index