OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.6 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/user.h.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./include/sys/user.h.orig Mon May 13 12:04:35 2002
  18. +++ ./include/sys/user.h Mon May 13 12:04:58 2002
  19. @@ -0,0 +1,103 @@
  20. +/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
  21. + This file is part of the GNU C Library.
  22. +
  23. + The GNU C Library is free software; you can redistribute it and/or
  24. + modify it under the terms of the GNU Lesser General Public
  25. + License as published by the Free Software Foundation; either
  26. + version 2.1 of the License, or (at your option) any later version.
  27. +
  28. + The GNU C Library is distributed in the hope that it will be useful,
  29. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  31. + Lesser General Public License for more details.
  32. +
  33. + You should have received a copy of the GNU Lesser General Public
  34. + License along with the GNU C Library; if not, write to the Free
  35. + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  36. + 02111-1307 USA. */
  37. +
  38. +#ifndef _SYS_USER_H
  39. +#define _SYS_USER_H 1
  40. +
  41. +/* The whole purpose of this file is for GDB and GDB only. Don't read
  42. + too much into it. Don't use it for anything other than GDB unless
  43. + you know what you are doing. */
  44. +
  45. +struct user_fpregs_struct
  46. +{
  47. + long int cwd;
  48. + long int swd;
  49. + long int twd;
  50. + long int fip;
  51. + long int fcs;
  52. + long int foo;
  53. + long int fos;
  54. + long int st_space [20];
  55. +};
  56. +
  57. +struct user_fpxregs_struct
  58. +{
  59. + unsigned short int cwd;
  60. + unsigned short int swd;
  61. + unsigned short int twd;
  62. + unsigned short int fop;
  63. + long int fip;
  64. + long int fcs;
  65. + long int foo;
  66. + long int fos;
  67. + long int mxcsr;
  68. + long int reserved;
  69. + long int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
  70. + long int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
  71. + long int padding[56];
  72. +};
  73. +
  74. +struct user_regs_struct
  75. +{
  76. + long int ebx;
  77. + long int ecx;
  78. + long int edx;
  79. + long int esi;
  80. + long int edi;
  81. + long int ebp;
  82. + long int eax;
  83. + long int xds;
  84. + long int xes;
  85. + long int xfs;
  86. + long int xgs;
  87. + long int orig_eax;
  88. + long int eip;
  89. + long int xcs;
  90. + long int eflags;
  91. + long int esp;
  92. + long int xss;
  93. +};
  94. +
  95. +struct user
  96. +{
  97. + struct user_regs_struct regs;
  98. + int u_fpvalid;
  99. + struct user_fpregs_struct i387;
  100. + unsigned long int u_tsize;
  101. + unsigned long int u_dsize;
  102. + unsigned long int u_ssize;
  103. + unsigned long start_code;
  104. + unsigned long start_stack;
  105. + long int signal;
  106. + int reserved;
  107. + struct user_regs_struct* u_ar0;
  108. + struct user_fpregs_struct* u_fpstate;
  109. + unsigned long int magic;
  110. + char u_comm [32];
  111. + int u_debugreg [8];
  112. +};
  113. +
  114. +#define PAGE_SHIFT 12
  115. +#define PAGE_SIZE (1UL << PAGE_SHIFT)
  116. +#define PAGE_MASK (~(PAGE_SIZE-1))
  117. +#define NBPG PAGE_SIZE
  118. +#define UPAGES 1
  119. +#define HOST_TEXT_START_ADDR (u.start_code)
  120. +#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
  121. +
  122. +#endif /* _SYS_USER_H */