ARM: kdgb: use <asm/opcodes.h> for data to be assembled as intruction
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 25 Jul 2013 14:47:40 +0000 (15:47 +0100)
committerVictor Kamensky <victor.kamensky@linaro.org>
Thu, 13 Mar 2014 21:48:38 +0000 (14:48 -0700)
commit124fd249b01ee8234be028ba0fefac8473cd5036
treeb559c221ca411a5e9a448a00d2fb777009bec686
parent56cbe5efe6f28a7efb459620281717fd7c109e05
ARM: kdgb: use <asm/opcodes.h> for data to be assembled as intruction

The arch_kgdb_breakpoint() function uses an inline assembly directive
to assemble a specific instruction using .word. This means the linker
will not treat is as an instruction, and therefore incorrectly swap
the endian-ness if running BE8.

As noted, this code means that kgdb is really only usable on arm32
kernels, and should be made dependant on not being a thumb2 kernel
until fixed. However this is not something to be added to this patch.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
(cherry picked from commit 5a8b93fc9457be90adfa10d3df6497393c5e2dc2)

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
arch/arm/include/asm/kgdb.h