summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/sstep.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-02-07 05:55:19 +0100
committerKumar Gala <galak@kernel.crashing.org>2007-02-07 05:55:19 +0100
commit8209003547c4b1006943eac8dc6c1fb6493cafda (patch)
tree37ed5742527d448f211c575fe714fe68846e0c40 /include/asm-powerpc/sstep.h
parentMerge branch 'linux-2.6' (diff)
downloadlinux-8209003547c4b1006943eac8dc6c1fb6493cafda.tar.xz
linux-8209003547c4b1006943eac8dc6c1fb6493cafda.zip
[POWERPC] Added kprobes support to ppc32
Added kprobes to ppc32 platforms that have use single_step_exception. This excludes 4xx and anything Book-E since their debug mechanisms for single stepping are completely different. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/sstep.h')
-rw-r--r--include/asm-powerpc/sstep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/sstep.h b/include/asm-powerpc/sstep.h
index 630a9889c07c..f593b0f9b627 100644
--- a/include/asm-powerpc/sstep.h
+++ b/include/asm-powerpc/sstep.h
@@ -21,6 +21,7 @@ struct pt_regs;
*/
#define IS_MTMSRD(instr) (((instr) & 0xfc0007be) == 0x7c000124)
#define IS_RFID(instr) (((instr) & 0xfc0007fe) == 0x4c000024)
+#define IS_RFI(instr) (((instr) & 0xfc0007fe) == 0x4c000064)
/* Emulate instructions that cause a transfer of control. */
extern int emulate_step(struct pt_regs *regs, unsigned int instr);