Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109982179
D24623.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1016 B
Referenced Files
None
Subscribers
None
D24623.diff
View Options
Index: head/stand/powerpc/boot1.chrp/Makefile
===================================================================
--- head/stand/powerpc/boot1.chrp/Makefile
+++ head/stand/powerpc/boot1.chrp/Makefile
@@ -10,7 +10,20 @@
SRCS= boot1.c ashldi3.c syncicache.c
CFLAGS+=-I${LDRSRC}
-LDFLAGS=-nostdlib -static -Wl,-N
+# Load boot1.elf below kernel.
+#
+# Due to limitiations in the way we load stuff, we have to avoid reusing
+# memory until the kernel MMU code has taken over.
+#
+# 0x38000 is high enough to not interfere with the trap area, but low
+# enough that it doesn't bump into the kernel area starting at 0x100000,
+# even if the entire partition gets used as the load size by a buggy OFW.
+#
+# In theory 0xf0000 would work too under the current 64k size limit for
+# boot1.elf defined in the HFS template, but sometimes boot1.elf is written
+# directly to the PReP partition.
+#
+LDFLAGS=-nostdlib -static -Wl,-N -Wl,-Ttext=0x38000
.PATH: ${SYSDIR}/libkern ${SRCTOP}/lib/libc/powerpc/gen ${.CURDIR}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 13, 1:34 AM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16620489
Default Alt Text
D24623.diff (1016 B)
Attached To
Mode
D24623: [PowerPC] Set fixed boot1.elf load address
Attached
Detach File
Event Timeline
Log In to Comment