Module Name: src
Committed By: pooka
Date: Sat Apr 12 20:24:46 UTC 2014
Modified Files:
src/sys/rump/librump/rumpkern: vm.c
Log Message:
apparently DFLSSIZ isn't defined on powerpc, so pull a value out of el stetson
To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 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.154 src/sys/rump/librump/rumpkern/vm.c:1.155
--- src/sys/rump/librump/rumpkern/vm.c:1.154 Thu Apr 10 22:14:03 2014
+++ src/sys/rump/librump/rumpkern/vm.c Sat Apr 12 20:24:46 2014
@@ -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 @@ void
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);