Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176432
b: refs/heads/master
c: 135d082
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 11, 2009
1 parent 0ac9009 commit 6bf307b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 936cf251787be41833afe2a1e44fbd5fb2adbdb6
refs/heads/master: 135d082171766922c6a9e2c741a326e518268428
9 changes: 1 addition & 8 deletions trunk/arch/sparc/mm/fault_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,19 @@
#include <asm/sections.h>
#include <asm/mmu_context.h>

#ifdef CONFIG_KPROBES
static inline int notify_page_fault(struct pt_regs *regs)
{
int ret = 0;

/* kprobe_running() needs smp_processor_id() */
if (!user_mode(regs)) {
if (kprobes_built_in() && !user_mode(regs)) {
preempt_disable();
if (kprobe_running() && kprobe_fault_handler(regs, 0))
ret = 1;
preempt_enable();
}
return ret;
}
#else
static inline int notify_page_fault(struct pt_regs *regs)
{
return 0;
}
#endif

static void __kprobes unhandled_fault(unsigned long address,
struct task_struct *tsk,
Expand Down

0 comments on commit 6bf307b

Please sign in to comment.