Page MenuHomeFreeBSD

Define SCTL_MASK32 when COMPAT_FREEBSD32 is defined.
ClosedPublic

Authored by brooks on Feb 18 2020, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 6:30 AM
Unknown Object (File)
Oct 6 2024, 11:13 AM
Unknown Object (File)
Sep 29 2024, 10:16 AM
Unknown Object (File)
Sep 27 2024, 5:54 PM
Unknown Object (File)
Sep 24 2024, 2:55 AM
Unknown Object (File)
Sep 23 2024, 7:30 PM
Unknown Object (File)
Sep 19 2024, 9:32 PM
Unknown Object (File)
Sep 17 2024, 1:36 PM
Subscribers
None

Details

Summary

Remove the list of architectures and depend on COMPAT_FREEBSD32 which is
defined (if relevent) in opt_global.h and thus defined everywhere in
the kernel.

This is a minor change in behavior in that 32-bit compat for sysctls now
depends on COMPAT_FREEBSD32 rather than on the potential for 32-bit
compat support. The prior arrangement may have been part of an attempt
to allow 32-bit compat to be loadable, but such attempts are doomed to
failure (due to the fact that ioctls have no meaning without the
associated file descriptor) without vastly more refactoring and some
sort of COMPAT_FREEBSD32_SUPPORT option.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Of course, I'd rather we just kill SCTL_MASK32 entirely and use SV_PROC_FLAG checks to replace it, but that's a separate (and larger) change we've already discussed in person.

This revision is now accepted and ready to land.Feb 24 2020, 7:53 PM