kdebug.h 711 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _SPARC64_KDEBUG_H
  2. #define _SPARC64_KDEBUG_H
  3. /* Nearly identical to x86_64/i386 code. */
  4. #include <linux/notifier.h>
  5. struct pt_regs;
  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 void bad_trap(struct pt_regs *, long);
  20. /* Grossly misnamed. */
  21. enum die_val {
  22. DIE_OOPS = 1,
  23. DIE_DEBUG, /* ta 0x70 */
  24. DIE_DEBUG_2, /* ta 0x71 */
  25. DIE_DIE,
  26. DIE_TRAP,
  27. DIE_TRAP_TL1,
  28. DIE_CALL,
  29. };
  30. #endif