user32.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef _ASM_X86_USER32_H
  2. #define _ASM_X86_USER32_H
  3. /* IA32 compatible user structures for ptrace.
  4. * These should be used for 32bit coredumps too. */
  5. struct user_i387_ia32_struct {
  6. u32 cwd;
  7. u32 swd;
  8. u32 twd;
  9. u32 fip;
  10. u32 fcs;
  11. u32 foo;
  12. u32 fos;
  13. u32 st_space[20]; /* 8*10 bytes for each FP-reg = 80 bytes */
  14. };
  15. /* FSAVE frame with extensions */
  16. struct user32_fxsr_struct {
  17. unsigned short cwd;
  18. unsigned short swd;
  19. unsigned short twd; /* not compatible to 64bit twd */
  20. unsigned short fop;
  21. int fip;
  22. int fcs;
  23. int foo;
  24. int fos;
  25. int mxcsr;
  26. int reserved;
  27. int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
  28. int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
  29. int padding[56];
  30. };
  31. struct user_regs_struct32 {
  32. __u32 ebx, ecx, edx, esi, edi, ebp, eax;
  33. unsigned short ds, __ds, es, __es;
  34. unsigned short fs, __fs, gs, __gs;
  35. __u32 orig_eax, eip;
  36. unsigned short cs, __cs;
  37. __u32 eflags, esp;
  38. unsigned short ss, __ss;
  39. };
  40. struct user32 {
  41. struct user_regs_struct32 regs; /* Where the registers are actually stored */
  42. int u_fpvalid; /* True if math co-processor being used. */
  43. /* for this mess. Not yet used. */
  44. struct user_i387_ia32_struct i387; /* Math Co-processor registers. */
  45. /* The rest of this junk is to help gdb figure out what goes where */
  46. __u32 u_tsize; /* Text segment size (pages). */
  47. __u32 u_dsize; /* Data segment size (pages). */
  48. __u32 u_ssize; /* Stack segment size (pages). */
  49. __u32 start_code; /* Starting virtual address of text. */
  50. __u32 start_stack; /* Starting virtual address of stack area.
  51. This is actually the bottom of the stack,
  52. the top of the stack is always found in the
  53. esp register. */
  54. __u32 signal; /* Signal that caused the core dump. */
  55. int reserved; /* No __u32er used */
  56. __u32 u_ar0; /* Used by gdb to help find the values for */
  57. /* the registers. */
  58. __u32 u_fpstate; /* Math Co-processor pointer. */
  59. __u32 magic; /* To uniquely identify a core file */
  60. char u_comm[32]; /* User command that was responsible */
  61. int u_debugreg[8];
  62. };
  63. #endif /* _ASM_X86_USER32_H */