diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2009-08-10 19:43:51 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2009-08-13 09:17:44 +1000 |
commit | 3e804a5792dbf3c237789de8d6a86ffffca8e084 (patch) | |
tree | 32f99ba78901baf45be6a6f904358b5daafa734a /kexec | |
parent | c24c6f32bb6b9b07d13c5b5c2456cb8004adc96f (diff) |
Make dtstruct variable to be 8 byte aligned
[PATCH 1/2] Make dtstruct variable to be 8 byte aligned
kexec is creating a version 3 device tree to be backwards compatible. This
version of the struct has 8-byte alignment for properties whose value is 8 or
more bytes. As the code directly checks the pointer when deciding to add the
alignment word, the struct memory must start on an 8 byte boundary. Force the
dtstruct variable to be always 8 bytes aligned.
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec')
-rw-r--r-- | kexec/arch/ppc64/fs2dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ppc64/fs2dt.c b/kexec/arch/ppc64/fs2dt.c index 1f551fd..b01ff86 100644 --- a/kexec/arch/ppc64/fs2dt.c +++ b/kexec/arch/ppc64/fs2dt.c @@ -41,7 +41,7 @@ static char pathname[MAXPATH], *pathstart; static char propnames[NAMESPACE] = { 0 }; -static unsigned dtstruct[TREEWORDS], *dt; +static unsigned dtstruct[TREEWORDS] __attribute__ ((aligned (8))), *dt; static unsigned long long mem_rsrv[2*MEMRESERVE] = { 0, 0 }; static int crash_param = 0; |