freebsd-dev/stand/i386
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
..
boot0 Revert r362466 2020-06-22 07:46:24 +00:00
boot0sio
boot2 Adjust parse() definition in boot2 to avoid clang 15 warning 2022-07-15 21:18:28 +02:00
btx
cdboot stand: remove CLANG_NO_IAS from cdboot 2019-08-15 17:32:39 +00:00
common loader: edd_device_path_v3 is too small 2020-10-12 09:34:50 +00:00
gptboot gptboot.8: Fix a typo and fix lint warnings 2022-03-18 11:35:04 +01:00
gptzfsboot loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
isoboot Don't add -Winline for WARNS=6 2021-03-22 11:55:45 +00:00
libfirewire stand: Use c99 structure initialization for fwohci device 2022-07-24 16:53:34 -06:00
libi386 stand: i386_fmtdev can be reduced to devformat 2022-08-11 10:27:17 -06:00
loader stand: Raise limit to 550,000 bytes for loader 2022-08-12 21:47:02 -06:00
loader_4th Update Makefile.depend files 2019-12-11 17:37:53 +00:00
loader_lua
loader_simp
mbr
pmbr Fix pmbr issues > 2TB 2021-07-13 15:40:44 -06:00
pxeldr stand: Go back to a.out format for /boot/loader 2022-08-11 17:29:10 -06:00
zfsboot stand: Replace zfs_fmtdev with generic devformat() 2022-08-11 10:27:16 -06:00
boot.ldscript Link stand/i386 components using a linker script 2020-03-04 21:01:22 +00:00
Makefile stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc Remove quotes around Makefile .error/.warn/.info strings 2022-01-22 14:03:07 -05:00