Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern apparently DFLSSIZ isn't defined o...



details:   https://anonhg.NetBSD.org/src/rev/b1684fd00539
branches:  trunk
changeset: 328667:b1684fd00539
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 12 20:24:46 2014 +0000

description:
apparently DFLSSIZ isn't defined on powerpc, so pull a value out of el stetson

diffstat:

 sys/rump/librump/rumpkern/vm.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r da727c74583b -r b1684fd00539 sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c    Sat Apr 12 19:25:48 2014 +0000
+++ b/sys/rump/librump/rumpkern/vm.c    Sat Apr 12 20:24:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm.c,v 1.154 2014/04/10 22:14:03 pooka Exp $   */
+/*     $NetBSD: vm.c,v 1.155 2014/04/12 20:24:46 pooka Exp $   */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.154 2014/04/10 22:14:03 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.155 2014/04/12 20:24:46 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -402,6 +402,9 @@
 uvm_init_limits(struct proc *p)
 {
 
+#ifndef DFLSSIZ
+#define DFLSSIZ (16*1024*1024)
+#endif
        p->p_rlimit[RLIMIT_STACK].rlim_cur = DFLSSIZ;
        p->p_rlimit[RLIMIT_STACK].rlim_max = MAXSSIZ;
        PUNLIMIT(RLIMIT_DATA);



Home | Main Index | Thread Index | Old Index