kexec-tools/kexec-tools-1.101-align-dtstruct.patch

19 lines
582 B
Diff

---
kexec/arch/ppc64/fs2dt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: kexec/arch/ppc64/fs2dt.c
===================================================================
--- kexec/arch/ppc64/fs2dt.c.orig
+++ kexec/arch/ppc64/fs2dt.c
@@ -40,7 +40,8 @@
static char pathname[MAXPATH], *pathstart;
static char propnames[NAMESPACE] = { 0 };
-static unsigned dtstruct[TREEWORDS], *dt;
+static unsigned dtstruct[TREEWORDS] __attribute((aligned(8)));
+static unsigned *dt;
static unsigned long long mem_rsrv[2*MEMRESERVE] = { 0, 0 };
static int crash_param = 0;