kgdb.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _SPARC_KGDB_H
  2. #define _SPARC_KGDB_H
  3. #ifdef CONFIG_SPARC32
  4. #define BUFMAX 2048
  5. #else
  6. #define BUFMAX 4096
  7. #endif
  8. enum regnames {
  9. GDB_G0, GDB_G1, GDB_G2, GDB_G3, GDB_G4, GDB_G5, GDB_G6, GDB_G7,
  10. GDB_O0, GDB_O1, GDB_O2, GDB_O3, GDB_O4, GDB_O5, GDB_SP, GDB_O7,
  11. GDB_L0, GDB_L1, GDB_L2, GDB_L3, GDB_L4, GDB_L5, GDB_L6, GDB_L7,
  12. GDB_I0, GDB_I1, GDB_I2, GDB_I3, GDB_I4, GDB_I5, GDB_FP, GDB_I7,
  13. GDB_F0,
  14. GDB_F31 = GDB_F0 + 31,
  15. #ifdef CONFIG_SPARC32
  16. GDB_Y, GDB_PSR, GDB_WIM, GDB_TBR, GDB_PC, GDB_NPC,
  17. GDB_FSR, GDB_CSR,
  18. #else
  19. GDB_F32 = GDB_F0 + 32,
  20. GDB_F62 = GDB_F32 + 15,
  21. GDB_PC, GDB_NPC, GDB_STATE, GDB_FSR, GDB_FPRS, GDB_Y,
  22. #endif
  23. };
  24. #ifdef CONFIG_SPARC32
  25. #define NUMREGBYTES ((GDB_CSR + 1) * 4)
  26. #else
  27. #define NUMREGBYTES ((GDB_Y + 1) * 8)
  28. struct pt_regs;
  29. asmlinkage void kgdb_trap(unsigned long trap_level, struct pt_regs *regs);
  30. #endif
  31. void arch_kgdb_breakpoint(void);
  32. #define BREAK_INSTR_SIZE 4
  33. #define CACHE_FLUSH_IS_SAFE 1
  34. #endif /* _SPARC_KGDB_H */