Module Name:    src
Committed By:   pooka
Date:           Thu Apr 10 22:14:03 UTC 2014

Modified Files:
        src/sys/rump/librump/rumpkern: vm.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 src/sys/rump/librump/rumpkern/vm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/vm.c
diff -u src/sys/rump/librump/rumpkern/vm.c:1.153 src/sys/rump/librump/rumpkern/vm.c:1.154
--- src/sys/rump/librump/rumpkern/vm.c:1.153	Wed Apr  9 23:53:36 2014
+++ src/sys/rump/librump/rumpkern/vm.c	Thu Apr 10 22:14:03 2014
@@ -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 @@ void
 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);

Reply via email to