git: e5d1a21e5001 - main - loader: Bump the limit to 560,000 bytes for BIOS loader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Feb 2024 04:16:52 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e5d1a21e500142c02fd44ce2f7822f2815a74fcc commit e5d1a21e500142c02fd44ce2f7822f2815a74fcc Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-02-16 04:12:52 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-02-16 04:16:36 +0000 loader: Bump the limit to 560,000 bytes for BIOS loader Further experience suggests we do not need as much margin. This was mistakenly bumped to 570,000 in a prior commit, so this undoes that. Sponsored by: Netflix --- stand/i386/loader/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile index 57191b3c8f78..525561b7c4d1 100644 --- a/stand/i386/loader/Makefile +++ b/stand/i386/loader/Makefile @@ -1,4 +1,3 @@ - HAVE_ZFS= ${MK_LOADER_ZFS} LOADER_NET_SUPPORT?= yes @@ -23,7 +22,7 @@ VERSION_FILE= ${.CURDIR}/../loader/version # non-random survey suggests that 20k-25k is a good value for 'most' machines. # We also need to subtract maximum stack usage (20-25k). # -# So 640k - 40k - 25k - 25k = 550k = 563,200 bytes, but use 550,000 below for +# So 640k - 40k - 25k - 25k = 550k = 563,200 bytes, but use 560,000 below for # some extra buffer for more complex setups and/or wider BIOS lomem variation. # # Some systems use more stack or have BIOS reserve more RAM (or both), and will @@ -33,7 +32,7 @@ VERSION_FILE= ${.CURDIR}/../loader/version # # will tell you how many kiB of lomem are available. # -LOADERSIZE?= 570000 # Largest known safe size for loader.bin +LOADERSIZE?= 560000 # Largest known safe size for loader.bin .PATH: ${BOOTSRC}/i386/loader