aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/kprobes-arm.c
diff options
context:
space:
mode:
authorJon Medhurst <tixy@yxit.co.uk>2011-04-20 10:52:38 +0100
committerTixy <tixy@medhuaa1.miniserver.com>2011-07-13 17:32:40 +0000
commit221bf15ffd2ad6cdc624aa4274f706499501c123 (patch)
treeb4742d2b4cedda73e387b9ab9812a00a280e55ed /arch/arm/kernel/kprobes-arm.c
parent691b2ff294a4787f3e54f5bb541570ac74bcb6f4 (diff)
ARM: kprobes: Split out internal parts of kprobes.h
Later, we will be adding a considerable amount of internal implementation definitions to kprobe header files and it would be good to have these in local header file along side the source code, rather than pollute the existing header which is include by all users of kprobes. To this end, we add arch/arm/kernel/kprobes.h and move into this the existing internal defintions from arch/arm/include/asm/kprobes.h Signed-off-by: Jon Medhurst <tixy@yxit.co.uk> Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/kernel/kprobes-arm.c')
-rw-r--r--arch/arm/kernel/kprobes-arm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/kprobes-arm.c b/arch/arm/kernel/kprobes-arm.c
index 15eeff6aea0e..976ce14c5576 100644
--- a/arch/arm/kernel/kprobes-arm.c
+++ b/arch/arm/kernel/kprobes-arm.c
@@ -61,6 +61,8 @@
#include <linux/kernel.h>
#include <linux/kprobes.h>
+#include "kprobes.h"
+
#define sign_extend(x, signbit) ((x) | (0 - ((x) & (1 << (signbit)))))
#define branch_displacement(insn) sign_extend(((insn) & 0xffffff) << 2, 25)