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 Pretend that we have slightly more...



details:   https://anonhg.NetBSD.org/src/rev/ec0aa2f2e295
branches:  trunk
changeset: 328628:ec0aa2f2e295
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Apr 10 22:14:03 2014 +0000

description:
Pretend that we have slightly more reasonable stack size limits.
(we don't have stacks, that's why we pretend)

diffstat:

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

diffs (28 lines):

diff -r b23eb0fb10d2 -r ec0aa2f2e295 sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c    Thu Apr 10 22:11:57 2014 +0000
+++ b/sys/rump/librump/rumpkern/vm.c    Thu Apr 10 22:14:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm.c,v 1.153 2014/04/09 23:53:36 pooka Exp $   */
+/*     $NetBSD: vm.c,v 1.154 2014/04/10 22:14:03 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.153 2014/04/09 23:53:36 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.154 2014/04/10 22:14:03 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -402,7 +402,8 @@
 uvm_init_limits(struct proc *p)
 {
 
-       PUNLIMIT(RLIMIT_STACK);
+       p->p_rlimit[RLIMIT_STACK].rlim_cur = DFLSSIZ;
+       p->p_rlimit[RLIMIT_STACK].rlim_max = MAXSSIZ;
        PUNLIMIT(RLIMIT_DATA);
        PUNLIMIT(RLIMIT_RSS);
        PUNLIMIT(RLIMIT_AS);



Home | Main Index | Thread Index | Old Index