Skip to content

Commit

Permalink
sys: Add a deprecation warning for 32-bit kernels.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bsdjhb committed Aug 16, 2023
1 parent 8a2e880 commit 41582f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sys/kern/init_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 41582f2

Please sign in to comment.