freebsd-dev/stand
Warner Losh f8a199f28f stand: Raise limit to 550,000 bytes for loader
Raise the limit for /boot/loader to be 550k. The IBM PC imposes a limit
of 640k of RAM below 1MB, which is needed for real mode calls. BTX takes
40k of that. The BIOS takes some amount (25k seems a good "99% take less
than or equal to this" estimate for that, though some systems consume
more). Most typical setups need 25k of stack.  This leaves 550k for
code. We set the limit to 550,000 which gives about an extra 13,000
bytes of buffer for machines that whose setups use a little more stack
or whose BIOS reserves a bit more...

Add this derivation in the Makefile. Also recommend setting LOADERSIZE
lower in /etc/src.conf when the loader has to run on a system whose BIOS
takes up more space, or for a complex setup. Add a recipe for how to
find how much RAM your BIOS uses as well (thanks to jhb@ for the
trick). Network cards that boot via PXE and HBAs with their BIOS enabled
are known to be large consumers of lomem space.

Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D36152
2022-08-12 21:47:02 -06:00
..
arm64 stand: Remove extra efi.h include 2022-07-15 12:00:49 -06:00
common stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
defaults Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
efi stand: efi_fmtdev can be reduced to devformat 2022-08-11 10:27:16 -06:00
fdt Remove "All Rights Reserved" from Foundation copyrights 2022-06-30 10:49:09 -04:00
ficl ficl: Fix a typo in a comment 2021-11-30 10:36:29 +01:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader.4th(8): Fix a typo in the manual page 2022-04-02 15:11:59 +02:00
i386 stand: Raise limit to 550,000 bytes for loader 2022-08-12 21:47:02 -06:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kboot stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
kshim stand/usb: Fix build by declaring missing functions and types. 2022-03-17 15:26:24 +01:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32
libofw stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
libsa stand: Replace zfs_fmtdev with generic devformat() 2022-08-11 10:27:16 -06:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
man loader.efi: add cross-reference to loader(8) 2022-05-18 10:33:20 -04:00
powerpc loader: fix powerpc64le ofw loader 2022-07-29 05:13:19 -03:00
uboot stand: uboot_fmtdev can be reduced to devformat 2022-08-11 10:27:17 -06:00
usb stand: Add disk_fmtdev for dv_fmtdev for all the disk devices 2022-08-11 10:27:16 -06:00
userboot stand: userboot_fmtdev can be reduced to devformat 2022-08-11 10:27:17 -06:00
defs.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
fdt.mk
ficl.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
loader.mk stand: Fix a common typo in source code comments 2022-06-05 09:49:51 +02:00
lua.mk
Makefile stand: Add a helper 'universe' target 2022-07-30 05:01:47 -06:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00