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
This commit is contained in:
parent
8a2e880ab0
commit
41582f28dd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user