From nobody Wed Sep 06 21:56:49 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 4Rgx6V1tzMz4sJMH; Wed, 6 Sep 2023 21:56:50 +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 4Rgx6T6th6z3bt6; Wed, 6 Sep 2023 21:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037410; 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=ja+y/kOtSk0rvFdAdoStA1yxe6dRsZSfVmGzjnEV/uw=; b=lgKEcs03fWMD9HMVT6+IMpJvkdTc8/mXno/wTPpIEkLfVdiA6aKD+uTjj1938cqhrvyc+d YbP+J7iJzks3fONCCuu/jeXvk9sHml+wWei3/0Z5OKABLBMQk4/FqXY2GLbvnmJ7rwFUTp UWjylgxHvjxmGPCHQi0/rtCz2m179Q80Wfhk/4xy1s25uE/HECB6dMk4fOFJZlUEUHhfCy 77Rtab5BdnsK44peQOMFW+79/TDQvkhM8G3hRGzq65N1McaJCTDTVZH6KP+CYCzYU8/DwB 09zJtt6GkjJiKqgK8Wy7MV8gcki+2U+jfz+/khG/DfxFZfm9pYNL5cvnNs3fxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694037410; a=rsa-sha256; cv=none; b=uRvdbuuV2w/vDTUPt/CO23UZn1eC+M3fuCR7gbZyoZb+wegnus83B876fdrGiK0ZxlLj2k 7dmVtArJHTckt0Dt3gVWe3YzyXIvTT7cZRjT0NL/BVZVuT+Cr9d0XE4GKz3Y/uaH86eIau eYDldExZ3+fhorIFmbDzIdt6HexLPM3mvDLOynetikFjxVAmQawkiFQwX50B9FNt1q0PKL r/0oJJGJskj5gaEfaEYXCrUqmnloDGOgKjx/bRBKvAUlsNvz7Nhsop3Mm907hYPUjkbrzC /OrPTMeileK87dTu0OSYjsOTNhPqiWo0smOEn0pUiiVRsRC4Oq9a5y00V2MHuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037410; 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=ja+y/kOtSk0rvFdAdoStA1yxe6dRsZSfVmGzjnEV/uw=; b=FSrydtbKGwyyZqX1Q49icF09lCKjXiXSiotT5L75wphVpKQpko3pEczaWaMCw9v3i+KH12 DeqiZ9gQWDR5yfa/r2FHvW67vdCg0ltnglFHaEVphz0K0pM0q2lPptnjnIyhZdkgDrD6zQ 8NeJ9mWpMePly0HNAbntqYSoBLsWKSD5LDL6lMeG/svRuzo4KS8ViqJdHH9tkvWvFj6LnO yEvIM4pfQOIwoIbC5y4ovBVwdMKAUI6Xy3SLt27T+QJq1HnlnaHp8jf1rbypPT1ylFzYjN iUWSyxNBy2EHOkq1s2FjVokCSZ2to9+PIobwUFewEGL2bgEP6rxImo7YSmXwhA== 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 4Rgx6T5yRCzYvc; Wed, 6 Sep 2023 21:56:49 +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 386Lunao023176; Wed, 6 Sep 2023 21:56:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 386LunRt023173; Wed, 6 Sep 2023 21:56:49 GMT (envelope-from git) Date: Wed, 6 Sep 2023 21:56:49 GMT Message-Id: <202309062156.386LunRt023173@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: c2cd285bfe41 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: c2cd285bfe41574490e5f2c11b113e5fb8536a55 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c2cd285bfe41574490e5f2c11b113e5fb8536a55 commit c2cd285bfe41574490e5f2c11b113e5fb8536a55 Author: John Baldwin AuthorDate: 2023-08-16 16:48:51 +0000 Commit: John Baldwin CommitDate: 2023-09-06 21:56:10 +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 (cherry picked from commit 41582f28ddf7b42b713b270d41e8da80160b69a3) --- 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 4a8dc8ac45f1..73d78ad16df3 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -386,6 +386,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) {