Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334162
b: refs/heads/master
c: f0a996e
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wessel committed Oct 12, 2012
1 parent 1e1106d commit d451411
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f30fed10c440a25937e509860fa207399b26efe5
refs/heads/master: f0a996eeeda214f4293e234df33b29bec003b536
9 changes: 9 additions & 0 deletions trunk/arch/mips/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,15 @@ static int kgdb_mips_notify(struct notifier_block *self, unsigned long cmd,
struct pt_regs *regs = args->regs;
int trap = (regs->cp0_cause & 0x7c) >> 2;

#ifdef CONFIG_KPROBES
/*
* Return immediately if the kprobes fault notifier has set
* DIE_PAGE_FAULT.
*/
if (cmd == DIE_PAGE_FAULT)
return NOTIFY_DONE;
#endif /* CONFIG_KPROBES */

/* Userspace events, ignore. */
if (user_mode(regs))
return NOTIFY_DONE;
Expand Down

0 comments on commit d451411

Please sign in to comment.