Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152955081
D56470.id175762.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
D56470.id175762.diff
View Options
diff --git a/stand/powerpc/boot1.chrp/boot1.c b/stand/powerpc/boot1.chrp/boot1.c
--- a/stand/powerpc/boot1.chrp/boot1.c
+++ b/stand/powerpc/boot1.chrp/boot1.c
@@ -102,14 +102,11 @@
ofwh_t stdinh, stdouth;
/*
- * Note about the entry point:
+ * Our entrypoint.
*
- * For some odd reason, the first page of the load appears to have trouble
- * when entering in LE. The first five instructions decode weirdly.
- * I suspect it is some cache weirdness between the ELF headers and .text.
- *
- * Ensure we have a gap between the start of .text and the entry as a
- * workaround.
+ * A bug in the SLOF shipped with some versions of QEMU causes the first
+ * 32 bytes of .text to be wrongly byte-swapped when loading LE programs.
+ * As a workaround, we add some padding at the start of the text section.
*/
__asm(" \n\
.data \n\
@@ -118,7 +115,7 @@
.space 16384 \n\
\n\
.text \n\
- /* SLOF cache hack */ \n\
+ /* SLOF workaround */ \n\
.space 4096 \n\
.globl _start \n\
_start: \n\
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 7:40 AM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31726224
Default Alt Text
D56470.id175762.diff (1 KB)
Attached To
Mode
D56470: boot1.chrp: Improve comment for the SLOF hack
Attached
Detach File
Event Timeline
Log In to Comment