Page MenuHomeFreeBSD

D14018.diff
No OneTemporary

D14018.diff

Index: head/sys/mips/mips/machdep.c
===================================================================
--- head/sys/mips/mips/machdep.c
+++ head/sys/mips/mips/machdep.c
@@ -383,7 +383,11 @@
void
mips_postboot_fixup(void)
{
- static char fake_preload[256];
+ /*
+ * We store u_long sized objects into the reload area, so the array
+ * must be so aligned. The standard allows any alignment for char data.
+ */
+ static char fake_preload[256] _Alignas(_Alignof(u_long));
caddr_t preload_ptr = (caddr_t)&fake_preload[0];
size_t size = 0;

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 11:37 PM (22 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14749854
Default Alt Text
D14018.diff (547 B)

Event Timeline