Module Name: src Committed By: mrg Date: Thu Jan 11 04:33:45 UTC 2024
Modified Files: src/sys/arch/vax/vax: machdep.c Log Message: 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@ XXX: pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 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.197 src/sys/arch/vax/vax/machdep.c:1.198 --- src/sys/arch/vax/vax/machdep.c:1.197 Fri Jan 5 17:29:29 2024 +++ src/sys/arch/vax/vax/machdep.c Thu Jan 11 04:33:45 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.197 2024/01/05 17:29:29 hans Exp $ */ +/* $NetBSD: machdep.c,v 1.198 2024/01/11 04:33:45 mrg 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.197 2024/01/05 17:29:29 hans Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.198 2024/01/11 04:33:45 mrg Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -773,6 +773,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; }