ARM: traps: use <asm/opcodes.h> to get correct instruction order
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 19 Jul 2013 16:12:05 +0000 (17:12 +0100)
committerVictor Kamensky <victor.kamensky@linaro.org>
Thu, 13 Mar 2014 21:48:34 +0000 (14:48 -0700)
commit2a08f5bc8607f1fcc8345c2a9d60f16210debeb5
treee2053962fb0243f27be0454209f22eaad0b33df6
parent2037b6f8fdba30601e92c10b3d9f79e81d82e9bd
ARM: traps: use <asm/opcodes.h> to get correct instruction order

The trap handler needs to take into account the endian configuration of
the system when loading instructions. Use <asm/opcodes.h> to provide the
necessary conversion functions.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit a79a0cb1d35ec422dcf493cef1bebf9fdfcfdb9a)

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
arch/arm/kernel/traps.c