summaryrefslogtreecommitdiff
path: root/include/asm-arm
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-12-03 15:27:56 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 15:25:17 +0000
commit785d3cd286f0bf67d1bf692559b9ae5de12678f5 (patch)
treed533f0ab4792b1df11a0f862ec7246bb4455869c /include/asm-arm
parentd30a0c8bf99f0e6a7d8c57bd4524039585ffbced (diff)
downloadlinux-3.10-785d3cd286f0bf67d1bf692559b9ae5de12678f5.tar.gz
linux-3.10-785d3cd286f0bf67d1bf692559b9ae5de12678f5.tar.bz2
linux-3.10-785d3cd286f0bf67d1bf692559b9ae5de12678f5.zip
ARM kprobes: prevent some functions involved with kprobes from being probed
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/traps.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-arm/traps.h b/include/asm-arm/traps.h
index d4f34dc83eb..f1541afcf85 100644
--- a/include/asm-arm/traps.h
+++ b/include/asm-arm/traps.h
@@ -15,4 +15,13 @@ struct undef_hook {
void register_undef_hook(struct undef_hook *hook);
void unregister_undef_hook(struct undef_hook *hook);
+static inline int in_exception_text(unsigned long ptr)
+{
+ extern char __exception_text_start[];
+ extern char __exception_text_end[];
+
+ return ptr >= (unsigned long)&__exception_text_start &&
+ ptr < (unsigned long)&__exception_text_end;
+}
+
#endif