ARM: kprobes: Extend arch_specific_insn to add pointer to emulated instruction
authorJon Medhurst <tixy@yxit.co.uk>
Thu, 9 Jun 2011 13:05:51 +0000 (14:05 +0100)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:42 +0000 (17:32 +0000)
commite2960317d4581689bf80dbad4d75e7a59f11a3f7
tree1a80fc69624bd87d1e2393c3a67ce15dc1c17daf
parentc6a7d97d57ef41477a85f4c0f48ea5243132ee1f
ARM: kprobes: Extend arch_specific_insn to add pointer to emulated instruction

When we come to emulating Thumb instructions then, to interwork
correctly, the code on in the instruction slot must be invoked with a
function pointer which has the least significant bit set. Rather that
set this by hand in every Thumb emulation function we will add a new
field for this purpose to arch_specific_insn, called insn_fn.

This also enables us to seamlessly share emulation functions between ARM
and Thumb code.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/include/asm/kprobes.h
arch/arm/kernel/kprobes.c