Pretend that we have slightly more reasonable stack size limits.

(we don't have stacks, that's why we pretend)
This commit is contained in:
pooka 2014-04-10 22:14:03 +00:00
parent dd8566755f
commit d672154267

View File

@ -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);