Page MenuHomeFreeBSD

stand: Derive the limits for /boot/loader
ClosedPublic

Authored by imp on Aug 12 2022, 5:11 AM.
Tags
None
Referenced Files
F83281908: D36152.diff
Wed, May 8, 9:52 AM
Unknown Object (File)
Mar 23 2024, 11:14 AM
Unknown Object (File)
Feb 26 2024, 10:35 PM
Unknown Object (File)
Feb 8 2024, 2:12 AM
Unknown Object (File)
Jan 6 2024, 1:07 PM
Unknown Object (File)
Jan 5 2024, 11:34 PM
Unknown Object (File)
Jan 5 2024, 3:42 PM
Unknown Object (File)
Dec 22 2023, 11:02 PM
Subscribers

Details

Summary

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 "95%" estimate
for that, though some systems consume more). Most typical setups use
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 use a little more
stack or whose BIOS uses a little more.

Add a note to this effect. Also recommend setting LOADERSIZE lower in
/etc/src.conf for systems whose BIOS takes up more space. Add a recipe
for how to find how much RAM your bios uses as well.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46876
Build 43765: arc lint + arc unit