Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115255264
D36152.id109290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36152.id109290.diff
View Options
diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile
--- a/stand/i386/loader/Makefile
+++ b/stand/i386/loader/Makefile
@@ -19,8 +19,22 @@
INTERNALPROG=
NEWVERSWHAT?= "bootstrap loader" x86
VERSION_FILE= ${.CURDIR}/../loader/version
-LOADERSIZE?= 508000 # Largest known safe size for loader.bin
-
+#
+# There's 640k - 40k maximum space, less however much memory the BIOS uses. A
+# 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
+# some extra buffer for more complex setups and/or wider BIOS lomem variation.
+#
+# Some systems use more stack or have BIOS resere more RAM (or both), and will
+# need to set this lower in /etc/loader.conf if the above buffer is too small.
+#
+# sudo dd if=/dev/mem bs=1 iseek=0x413 count=2 | hd -d
+#
+# will tell you how many kiB of lomem are available.
+#
+LOADERSIZE?= 550000 # Largest known safe size for loader.bin
.PATH: ${BOOTSRC}/i386/loader
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 22, 10:26 PM (5 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17716612
Default Alt Text
D36152.id109290.diff (1 KB)
Attached To
Mode
D36152: stand: Derive the limits for /boot/loader
Attached
Detach File
Event Timeline
Log In to Comment