user.h 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #undef __WORDSIZE
  2. #define __WORDSIZE 32
  3. struct user_m68kfp_struct {
  4. unsigned long fpregs[24], fpcntl[3];
  5. };
  6. struct user_regs_struct {
  7. long d1, d2, d3, d4, d5, d6, d7;
  8. long a0, a1, a2, a3, a4, a5, a6;
  9. long d0, usp, orig_d0;
  10. short stkadj, sr;
  11. long pc;
  12. short fmtvec, __pad;
  13. };
  14. struct user {
  15. struct user_regs_struct regs;
  16. int u_fpvalid;
  17. struct user_m68kfp_struct m68kfp;
  18. unsigned long u_tsize, u_dsize, u_ssize, start_code, start_stack;
  19. long signal;
  20. int reserved;
  21. unsigned long u_ar0;
  22. struct user_m68kfp_struct *u_fpstate;
  23. unsigned long magic;
  24. char u_comm[32];
  25. };
  26. #define ELF_NGREG 20
  27. typedef unsigned long elf_greg_t;
  28. typedef elf_greg_t elf_gregset_t[ELF_NGREG];
  29. typedef struct user_m68kfp_struct elf_fpregset_t;
  30. #define NBPG 4096
  31. #define UPAGES 1
  32. #define HOST_TEXT_START_ADDR (u.start_code)
  33. #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)