[IA64] Kdump: 64-bit aligned access to elf-note data
authorAlex Williamson <alex.williamson@hp.com>
Mon, 22 Oct 2007 18:19:42 +0000 (12:19 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 22 Oct 2007 18:19:42 +0000 (12:19 -0600)
commitde5d56f31dd18fde2297e6f7ea1a1bc2e809ffe5
tree2a1140286811c2a0e00a561503b38d2d8d007898
parent5ed95776f5640706da1ea385e8dc8f35351220d3
[IA64] Kdump: 64-bit aligned access to elf-note data

xen_core_regs, as passed by kexec_crash_save_info(), is 32-bit aligned as
it is the data section of an ELF-note. In order to ensure 64-bit aligned
access when xen_core_regs is filled in, shift it a bit and then memmove()
the data back into the 32-bit aligned location after the values have been
written.

Without this change kdump panics on an unaligned-access.

Signed-off-by: Simon Horman <horms@verge.net.au>
xen/include/asm-ia64/elf.h