aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kdebug.h')
-rw-r--r--include/asm-powerpc/kdebug.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/asm-powerpc/kdebug.h b/include/asm-powerpc/kdebug.h
index 532bfee934f4..df996b933def 100644
--- a/include/asm-powerpc/kdebug.h
+++ b/include/asm-powerpc/kdebug.h
@@ -18,8 +18,20 @@ struct die_args {
18 18
19extern int register_die_notifier(struct notifier_block *); 19extern int register_die_notifier(struct notifier_block *);
20extern int unregister_die_notifier(struct notifier_block *); 20extern int unregister_die_notifier(struct notifier_block *);
21extern int register_page_fault_notifier(struct notifier_block *); 21
22extern int unregister_page_fault_notifier(struct notifier_block *); 22/*
23 * These are only here because kprobes.c wants them to implement a
24 * blatant layering violation. Will hopefully go away soon once all
25 * architectures are updated.
26 */
27static inline int register_page_fault_notifier(struct notifier_block *nb)
28{
29 return 0;
30}
31static inline int unregister_page_fault_notifier(struct notifier_block *nb)
32{
33 return 0;
34}
23extern struct atomic_notifier_head powerpc_die_chain; 35extern struct atomic_notifier_head powerpc_die_chain;
24 36
25/* Grossly misnamed. */ 37/* Grossly misnamed. */
@@ -29,7 +41,6 @@ enum die_val {
29 DIE_DABR_MATCH, 41 DIE_DABR_MATCH,
30 DIE_BPT, 42 DIE_BPT,
31 DIE_SSTEP, 43 DIE_SSTEP,
32 DIE_PAGE_FAULT,
33}; 44};
34 45
35static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig) 46static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)