diff options
author | Michael Neuling <mikey@neuling.org> | 2008-01-18 05:50:30 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-25 12:52:50 +0100 |
commit | c3b75bd7bbf4a0438dc140033b80657995fd30ed (patch) | |
tree | 4621ebbf620d6262fccf61811824386b9ba50915 /arch/powerpc/mm/fault.c | |
parent | [POWERPC] Fix a couple of copyright symbols (diff) | |
download | linux-c3b75bd7bbf4a0438dc140033b80657995fd30ed.tar.xz linux-c3b75bd7bbf4a0438dc140033b80657995fd30ed.zip |
[POWERPC] Make setjmp/longjmp code usable outside of xmon
This makes the setjmp/longjmp code used by xmon, generically available
to other code. It also removes the requirement for debugger hooks to
be only called on 0x300 (data storage) exception.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/fault.c')
-rw-r--r-- | arch/powerpc/mm/fault.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 10dda224a361..7b2510799266 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c @@ -167,10 +167,8 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address, if (notify_page_fault(regs)) return 0; - if (trap == 0x300) { - if (debugger_fault_handler(regs)) - return 0; - } + if (unlikely(debugger_fault_handler(regs))) + return 0; /* On a kernel SLB miss we can only check for a valid exception entry */ if (!user_mode(regs) && (address >= TASK_SIZE)) |