diff --git a/sys/rump/librump/rumpkern/vm.c b/sys/rump/librump/rumpkern/vm.c index 9c2979e48dce..2532a78fa214 100644 --- a/sys/rump/librump/rumpkern/vm.c +++ b/sys/rump/librump/rumpkern/vm.c @@ -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 -__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 #include @@ -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);