diff options
| -rw-r--r-- | arch/mips/kernel/kgdb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c index f4546e97c60d..23817a6e32b6 100644 --- a/arch/mips/kernel/kgdb.c +++ b/arch/mips/kernel/kgdb.c | |||
| @@ -283,6 +283,15 @@ static int kgdb_mips_notify(struct notifier_block *self, unsigned long cmd, | |||
| 283 | struct pt_regs *regs = args->regs; | 283 | struct pt_regs *regs = args->regs; |
| 284 | int trap = (regs->cp0_cause & 0x7c) >> 2; | 284 | int trap = (regs->cp0_cause & 0x7c) >> 2; |
| 285 | 285 | ||
| 286 | #ifdef CONFIG_KPROBES | ||
| 287 | /* | ||
| 288 | * Return immediately if the kprobes fault notifier has set | ||
| 289 | * DIE_PAGE_FAULT. | ||
| 290 | */ | ||
| 291 | if (cmd == DIE_PAGE_FAULT) | ||
| 292 | return NOTIFY_DONE; | ||
| 293 | #endif /* CONFIG_KPROBES */ | ||
| 294 | |||
| 286 | /* Userspace events, ignore. */ | 295 | /* Userspace events, ignore. */ |
| 287 | if (user_mode(regs)) | 296 | if (user_mode(regs)) |
| 288 | return NOTIFY_DONE; | 297 | return NOTIFY_DONE; |
