Module Name: src Committed By: martin Date: Sun Jan 14 18:05:57 UTC 2024
Modified Files: src/sys/arch/vax/vax [netbsd-10]: machdep.c Log Message: Pull up following revision(s) (requested by mrg in ticket #552): sys/arch/vax/vax/machdep.c: revision 1.198 vax: set default RLIMIT_AS to the same as MAXDSIZ this allows modern GCC to run without returning to the issues that reported in PR#28379, and avoids a strange sort-of-invariant violation where the rlimit for data equaled the rlimit for all address space, so there is no room for text or stack etc. ok ragge@ To generate a diff of this commit: cvs rdiff -u -r1.196 -r1.196.20.1 src/sys/arch/vax/vax/machdep.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/arch/vax/vax/machdep.c diff -u src/sys/arch/vax/vax/machdep.c:1.196 src/sys/arch/vax/vax/machdep.c:1.196.20.1 --- src/sys/arch/vax/vax/machdep.c:1.196 Thu Jun 11 19:20:46 2020 +++ src/sys/arch/vax/vax/machdep.c Sun Jan 14 18:05:57 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.196 2020/06/11 19:20:46 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.196.20.1 2024/01/14 18:05:57 martin Exp $ */ /* * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. @@ -83,7 +83,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.196 2020/06/11 19:20:46 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.196.20.1 2024/01/14 18:05:57 martin Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -772,6 +772,6 @@ mm_md_readwrite(dev_t dev, struct uio *u void machdep_init(void) { - proc0.p_rlimit[RLIMIT_AS].rlim_cur = DFLDSIZ; + proc0.p_rlimit[RLIMIT_AS].rlim_cur = MAXDSIZ; proc0.p_rlimit[RLIMIT_AS].rlim_max = MAXDSIZ; }