user.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _SYS_USER_H
  2. #define _SYS_USER_H
  3. struct user_fpregs
  4. {
  5. };
  6. struct user_regs
  7. {
  8. unsigned long sr;
  9. unsigned long pc;
  10. unsigned long lr;
  11. unsigned long sp;
  12. unsigned long r12;
  13. unsigned long r11;
  14. unsigned long r10;
  15. unsigned long r9;
  16. unsigned long r8;
  17. unsigned long r7;
  18. unsigned long r6;
  19. unsigned long r5;
  20. unsigned long r4;
  21. unsigned long r3;
  22. unsigned long r2;
  23. unsigned long r1;
  24. unsigned long r0;
  25. unsigned long r12_orig;
  26. };
  27. struct user
  28. {
  29. struct user_regs regs; /* general registers */
  30. size_t u_tsize; /* text size (pages) */
  31. size_t u_dsize; /* data size (pages) */
  32. size_t u_ssize; /* stack size (pages) */
  33. unsigned long start_code; /* text starting address */
  34. unsigned long start_data; /* data starting address */
  35. unsigned long start_stack; /* stack starting address */
  36. long int signal; /* signal causing core dump */
  37. struct user_regs * u_ar0; /* help gdb find registers */
  38. unsigned long magic; /* identifies a core file */
  39. char u_comm[32]; /* user command name */
  40. };
  41. #endif /* _SYS_USER_H */