freebsd-src/stand
Kyle Evans 1631382cf2 loader: provide a features table for binary compatibility advertisement
liblua now provides a loader.has_feature() function to probe the loader
binary for features advertised.  name => desc mappings are provided in
loader.features to get a list of all of the features loader *can*
support.  core.hasFeature is provided as a shim to loader.has_feature
so that individual consumers don't need to think about the logic of the
loader module not providing has_feature; we know that means the feature
isn't enabled.

The first consumer of this will be EARLY_ACPI to advertise that the
loader binary probes for ACPI presence before the interpreter has
started, so that we know whether we can trust the presence of acpi.rsdp
as relatively authoritative.  In general, it's intended to be used to
avoid breaking new scripts on older loaders within reason.

This will be used in lua as `core.hasFeature("EARLY_ACPI")`, while the
C bits of loader will `feature_enable(FEATURE_EARLY_ACPI)`.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D42695
2023-12-08 15:43:19 -06:00
..
arm64 stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
common stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
defaults Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
efi stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fdt loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
ficl loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
ficl32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fonts Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
forth stand: Retire setting hw.ata.wc: it doesn't exist. 2023-11-24 11:28:44 -07:00
i386 pmbr: Only load the first 545k rather than error out 2023-11-27 15:45:56 -07:00
images Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kboot stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kshim Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
liblua loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
liblua32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libofw stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
libsa loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
libsa32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
man loader.efi.8: Fix a typo 2023-11-22 13:25:34 +01:00
powerpc stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uboot stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
usb Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
userboot stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
defs.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-07 09:57:32 -05:00
ficl.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00