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.

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