Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109457018
D14018.id38324.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D14018.id38324.diff
View Options
Index: sys/mips/mips/machdep.c
===================================================================
--- sys/mips/mips/machdep.c
+++ sys/mips/mips/machdep.c
@@ -383,7 +383,14 @@
void
mips_postboot_fixup(void)
{
- static char fake_preload[256];
+ /*
+ * The compiler/linker can align fake_preload anyway it would like.
+ * When building the kernel with gcc+bfd this always happened to
+ * be a multiple of 8. However, when building with clang we have to
+ * explicitly mark it as aligned to 8 bytes since the compiler will
+ * emit sd instructions to store to this buffer.
+ */
+ static char fake_preload[256] __aligned(8);
caddr_t preload_ptr = (caddr_t)&fake_preload[0];
size_t size = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 7:59 AM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16489507
Default Alt Text
D14018.id38324.diff (702 B)
Attached To
Mode
D14018: Make mips_postboot_fixup work when building the kernel with clang+lld
Attached
Detach File
Event Timeline
Log In to Comment