]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37fcd1f396f5a27cfbb3e43321fa055de67da5db
treee4e73da9cfeb2851a523f4a2914d00ac21657520
parent9b8586bc1e5707893db0a995843a06bb46f90e25
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