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)
commit3497447f15485b479366ec86effaac16fc82411b
tree52369aa1441d5a4ff4fea1d175c96d63396e7224
parentcafb0ddac60556f7d2d4cd0ef1a93da8a6c71ffb
sh: unwinder: Fix up usage of unaligned accessors.

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