From nobody Wed Aug 16 16:53:32 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQvND2g9Fz4qrPL; Wed, 16 Aug 2023 16:53:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQvND1ylHz3M4D; Wed, 16 Aug 2023 16:53:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692204812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kxSa3FWl+5vvn53UZpA1vK7xp3WxSjqcLFf4OhdZbFg=; b=S8elBSX6EYWuGCXSEVKfW+HFg0HLaAY2Ba4dFmAw4B5AjxPRApG9DsHUPdF8GsCoiSuuiu JGoZ/b8wffaz610pOnHB5IhvNTtVr86jCjfWZAu0aU2DSNQFmC0/zn1SLRtdv/AXOkieVZ uBF7aLew5redRhdtGHa2sESHtt8QiIbgoY8TohbF/eqovTXtwsdlErAeJ64nXfwHBg5FCQ aKW4NpGobz3ANyxazRHHgt/PB9xSaT/gk3tneB6rZTGX6VYCHDnv6X5qKZE0lxyYVo2dEC Hfw9/gMGY2BmglAhJe4IHDiKhgptIX2p5Yalllr3cU5ehF1CBSueWldyHTrriA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692204812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kxSa3FWl+5vvn53UZpA1vK7xp3WxSjqcLFf4OhdZbFg=; b=drlYmb7+o8KlC/iv164I37WCNfADnocaFnzeSyXXVBHVKlmsXAa7mvoIFQNdaPyp3rDbEh diCyidbWVehiCzC5o39XjkiB58g2uAsE0ecJvVpwPFxMrk+2KSOlh6NqakPoDRedYGIVh+ zeEjFoJ5quC8zFq49ONDLr+ZdM7jE+tAwmu3v57+X/184v3ch8pRO2tQj/1I96HTwW9/M9 rmWVCOBretycqgc906OOEkJJ/ZfUqY6BTnkInF5v7iX0dprcvVleHMJyhi5dBrt5l6oQHd 0aBDZ6eCtQhK5/aPtb7voqo1xdUAveL0O4uBT24mkg7uzlxqeds4uQEzdt86Ug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692204812; a=rsa-sha256; cv=none; b=oVdK0pik9ziCqc+rL38VgQEj7iXrrcgMyx4oDbJnH1atK804/7PrWbSnHvk2GuEyStFoSn yCI/oo0wXIa9YPl/4nvvZy3hRf5ireHgaEJvWZYtO9WhRCR5y0nUmvw5A8S6dyYrKhYRmn N5dWarQJdD3NYr0LM7MVkAKVw2VdF4MEKMowMfGgtXY/Qclmh7wumyGLZWkx6GNGtjo8hN aXePghLcKX/jdWOKVLCU1feBfqqjrdibChs4LMKk7ijrA8wAM/mmR8wVEGbByMzrhGE9v2 6erU2ZX4v4YsPgH66VSzjvZ8ZBUsAcvggx7koE6TyyXG6kUOHJ9RMbcKWVYckg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RQvND11pzz100m; Wed, 16 Aug 2023 16:53:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37GGrWXa057999; Wed, 16 Aug 2023 16:53:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GGrWAg057996; Wed, 16 Aug 2023 16:53:32 GMT (envelope-from git) Date: Wed, 16 Aug 2023 16:53:32 GMT Message-Id: <202308161653.37GGrWAg057996@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 41582f28ddf7 - main - sys: Add a deprecation warning for 32-bit kernels. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41582f28ddf7b42b713b270d41e8da80160b69a3 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=41582f28ddf7b42b713b270d41e8da80160b69a3 commit 41582f28ddf7b42b713b270d41e8da80160b69a3 Author: John Baldwin AuthorDate: 2023-08-16 16:48:51 +0000 Commit: John Baldwin CommitDate: 2023-08-16 16:48:51 +0000 sys: Add a deprecation warning for 32-bit kernels. Per recent discussions on arch@ and at the BSDCan developer summit, we are considering removing support for 32-bit platforms (in some form) for 15.0 (at the earliest). A final decision on what will ship in 15.0 will be made closer to the release of 15.0. However, we should communicate the potential deprecation in 14.0 to provide notice to users. This commit adds a warning during boot on 32-bit kernels that they are deprecated and may be removed in 15.0. More details will be included in a followup commit to RELNOTES. Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D41163 --- sys/kern/init_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index abc6b3f6e2f2..78377d5d7ce7 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -395,6 +395,15 @@ SYSINIT(diagwarn2, SI_SUB_LAST, SI_ORDER_FIFTH, print_caddr_t, diag_warn); #endif +#if __SIZEOF_LONG__ == 4 +static char ilp32_warn[] = + "WARNING: 32-bit kernels are deprecated and may be removed in FreeBSD 15.0.\n"; +SYSINIT(ilp32warn, SI_SUB_COPYRIGHT, SI_ORDER_FIFTH, + print_caddr_t, ilp32_warn); +SYSINIT(ilp32warn2, SI_SUB_LAST, SI_ORDER_FIFTH, + print_caddr_t, ilp32_warn); +#endif + static int null_fetch_syscall_args(struct thread *td __unused) {