kdebug.h 733 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _ASM_POWERPC_KDEBUG_H
  2. #define _ASM_POWERPC_KDEBUG_H
  3. #ifdef __KERNEL__
  4. /* nearly identical to x86_64/i386 code */
  5. #include <linux/notifier.h>
  6. /*
  7. * These are only here because kprobes.c wants them to implement a
  8. * blatant layering violation. Will hopefully go away soon once all
  9. * architectures are updated.
  10. */
  11. static inline int register_page_fault_notifier(struct notifier_block *nb)
  12. {
  13. return 0;
  14. }
  15. static inline int unregister_page_fault_notifier(struct notifier_block *nb)
  16. {
  17. return 0;
  18. }
  19. extern struct atomic_notifier_head powerpc_die_chain;
  20. /* Grossly misnamed. */
  21. enum die_val {
  22. DIE_OOPS = 1,
  23. DIE_IABR_MATCH,
  24. DIE_DABR_MATCH,
  25. DIE_BPT,
  26. DIE_SSTEP,
  27. };
  28. #endif /* __KERNEL__ */
  29. #endif /* _ASM_POWERPC_KDEBUG_H */