user.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #define REG_REG0 0
  2. #define REG_REG15 15
  3. #define REG_PC 16
  4. #define REG_PR 17
  5. #define REG_SR 18
  6. #define REG_GBR 19
  7. #define REG_MACH 20
  8. #define REG_MACL 21
  9. #define REG_SYSCALL 22
  10. #define REG_FPREG0 23
  11. #define REG_FPREG15 38
  12. #define REG_XFREG0 39
  13. #define REG_XFREG15 54
  14. #define REG_FPSCR 55
  15. #define REG_FPUL 56
  16. struct user_fpu_struct {
  17. unsigned long fp_regs[16];
  18. unsigned long xfp_regs[16];
  19. unsigned long fpscr;
  20. unsigned long fpul;
  21. };
  22. #define ELF_NGREG 23
  23. typedef unsigned long elf_greg_t;
  24. typedef elf_greg_t elf_gregset_t[ELF_NGREG];
  25. typedef struct user_fpu_struct elf_fpregset_t;
  26. struct user {
  27. struct {
  28. unsigned long regs[16];
  29. unsigned long pc, pr, sr, gbr, mach, macl;
  30. long tra;
  31. } regs;
  32. struct user_fpu_struct fpu;
  33. int u_fpvalid;
  34. unsigned long u_tsize;
  35. unsigned long u_dsize;
  36. unsigned long u_ssize;
  37. unsigned long start_code;
  38. unsigned long start_data;
  39. unsigned long start_stack;
  40. long int signal;
  41. unsigned long u_ar0;
  42. struct user_fpu_struct *u_fpstate;
  43. unsigned long magic;
  44. char u_comm[32];
  45. };