mirror of the now-defunct rocklinux.org
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.

128 lines
3.8 KiB

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