aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/traps_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/traps_32.c')
-rw-r--r--arch/sh/kernel/traps_32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c
index 4901f6732162..862667a341fd 100644
--- a/arch/sh/kernel/traps_32.c
+++ b/arch/sh/kernel/traps_32.c
@@ -26,6 +26,7 @@
26#include <asm/system.h> 26#include <asm/system.h>
27#include <asm/uaccess.h> 27#include <asm/uaccess.h>
28#include <asm/fpu.h> 28#include <asm/fpu.h>
29#include <asm/kprobes.h>
29 30
30#ifdef CONFIG_SH_KGDB 31#ifdef CONFIG_SH_KGDB
31#include <asm/kgdb.h> 32#include <asm/kgdb.h>
@@ -743,6 +744,10 @@ asmlinkage void do_illegal_slot_inst(unsigned long r4, unsigned long r5,
743 struct pt_regs *regs = RELOC_HIDE(&__regs, 0); 744 struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
744 unsigned long error_code; 745 unsigned long error_code;
745 struct task_struct *tsk = current; 746 struct task_struct *tsk = current;
747
748 if (kprobe_handle_illslot(regs->pc) == 0)
749 return;
750
746#ifdef CONFIG_SH_FPU_EMU 751#ifdef CONFIG_SH_FPU_EMU
747 unsigned short inst = 0; 752 unsigned short inst = 0;
748 753