ARM: 6412/1: kprobes-decode: add support for MOVW instruction
authorWill Deacon <will.deacon@arm.com>
Mon, 27 Sep 2010 17:12:12 +0000 (18:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Oct 2010 18:21:37 +0000 (19:21 +0100)
commitccdf2e1bca8a45eaf89eb142dbed3551886413fe
treee4e73da9cfeb2851a523f4a2914d00ac21657520
parent7f58217bb6d39edac68ae0988cdb96a520ad916f
ARM: 6412/1: kprobes-decode: add support for MOVW instruction

The MOVW instruction moves a 16-bit immediate into the bottom halfword
of the destination register.

This patch ensures that kprobes leaves the 16-bit immediate intact, rather
than assume a 12-bit immediate and mask out the upper 4 bits.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/kprobes-decode.c