opnsense-src/stand
Olivier Certner 7b0350b376
libsa: smbios: Use 64-bit entry point if table below 4GB on non-EFI boot
On amd64, boot blocks and the non-EFI loader are 32-bit compiled as
clients of BTX, so cannot access addresses beyond 4GB.  However, the
64-bit entry point may refer to a structure table below 4GB, which we
want to use if the BIOS does not provide a 32-bit entry point.  The
situation is similar for powerpc64.

Consequently, always compile-in support for the 64-bit entry point, but
ensure that it is not selected on 32-bit-compiled boot loaders if the
structure table it points to grows beyond 4GB (as it is then not
accessible).

PR:             284460
Reviewed by:    markj
MFC after:      2 weeks
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49288

(cherry picked from commit 7f005c6699f429c2f762b4dd8fb39b3bcf5378e2)
2025-04-08 15:38:28 +02:00
..
arm64 stand: Automated cleanup of cdefs and other formatting 2024-04-15 20:32:05 -06:00
common stand: Add support for 64-bit machines with 32-bit UEFI implementations 2025-03-25 19:28:38 -06:00
defaults loader.conf.5: Correct terminal size 2025-03-25 19:28:37 -06:00
efi loader: Fix 32-bit compatibility 2025-03-27 10:21:55 -07:00
fdt libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
ficl stand: Remove dangling mips references 2024-04-16 13:54:28 -06: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 loader/4th: Move from hint.acpi.0.rsdp to acpi.rsdp 2024-12-28 11:13:19 -07:00
i386 btx: Align the PXE prompt with other options 2024-11-30 21:46:03 -05:00
images stand: Fix logo alpha 2024-07-29 18:37:09 +02:00
kboot loader: Bump all versions to 3.0 2024-08-01 08:49:54 -06:00
kshim stand/kshim: Replace devclass_equal with calls to strcmp 2025-02-27 10:25:39 -05:00
liblua stand: Spell LUA_COMPILE_SET correctly. 2024-05-20 19:08:53 +02:00
liblua32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libofw libsa: Remove redundant sys/cdefs.h 2024-04-16 13:54:26 -06:00
libsa libsa: smbios: Use 64-bit entry point if table below 4GB on non-EFI boot 2025-04-08 15:38:28 +02:00
libsa32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua stand: Fix brand positioning on framebuffer console 2025-03-03 05:29:47 +00:00
man Canonicalize the name of the FreeBSD Foundation 2025-02-19 09:58:47 -05:00
powerpc ports/filesystems: Fix fallout 2025-02-26 20:14:37 -05:00
uboot loader: Bump all versions to 3.0 2024-08-01 08:49:54 -06:00
usb stand/usb: Quiet warnings so this builds again 2025-02-27 10:25:10 -05:00
userboot loader: Bump all versions to 3.0 2024-08-01 08:49:54 -06:00
defs.mk stand/efi: Add a 32-bit variant of libefi 2025-03-25 19:28:38 -06:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-16 10:18:58 -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 stand/efi: Add a 32-bit variant of libefi 2025-03-25 19:28:38 -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 libsecureboot do not report expected unverified files 2024-04-16 13:54:22 -06:00