git: 795edc4ac23e - stable/14 - loader: Bump the limit to 560,000 bytes for BIOS loader

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 16 Apr 2024 20:12:56 UTC
The branch stable/14 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=795edc4ac23e050c57a5ee0aab70d6bea62dc49a

commit 795edc4ac23e050c57a5ee0aab70d6bea62dc49a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-16 04:12:52 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-04-16 19:54:25 +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
    
    (cherry picked from commit e5d1a21e500142c02fd44ce2f7822f2815a74fcc)
---
 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