sh: unwinder: Fix up usage of unaligned accessors.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 13 Aug 2009 17:10:59 +0000 (02:10 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 13 Aug 2009 17:10:59 +0000 (02:10 +0900)
This was using internal symbols for unaligned accesses, bypassing the
exposed interface for variable sized safe accesses. This converts all of
the __get_unaligned_cpuXX() users over to get_unaligned() directly,
relying on the cast to select the proper internal routine.

Additionally, the __put_unaligned_cpuXX() case is superfluous given that
the destination address is aligned in all of the current cases, so just
drop that outright.

Furthermore, this switches to the asm/unaligned.h header instead of the
asm-generic version, which was silently bypassing the SH-4A optimized
unaligned ops.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/dwarf.c

Simple merge