user.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* Copyright (C) 2003 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, write to the Free
  13. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14. 02111-1307 USA. */
  15. #ifndef _SYS_USER_H
  16. #define _SYS_USER_H 1
  17. struct sunos_regs
  18. {
  19. unsigned int psr, pc, npc, y;
  20. unsigned int regs[15];
  21. };
  22. struct sunos_fpqueue
  23. {
  24. unsigned int *addr;
  25. unsigned int inst;
  26. };
  27. struct sunos_fp
  28. {
  29. union
  30. {
  31. unsigned int regs[32];
  32. double reg_dbls[16];
  33. } fregs;
  34. unsigned int fsr;
  35. unsigned int flags;
  36. unsigned int extra;
  37. unsigned int fpq_count;
  38. struct sunos_fpqueue fpq[16];
  39. };
  40. struct sunos_fpu
  41. {
  42. struct sunos_fp fpstatus;
  43. };
  44. /* The SunOS core file header layout. */
  45. struct user {
  46. unsigned int magic;
  47. unsigned int len;
  48. struct sunos_regs regs;
  49. struct
  50. {
  51. unsigned char a_dynamic :1;
  52. unsigned char a_toolversion :7;
  53. unsigned char a_machtype;
  54. unsigned short a_info;
  55. unsigned int a_text;
  56. unsigned int a_data;
  57. unsigned int a_bss;
  58. unsigned int a_syms;
  59. unsigned int a_entry;
  60. unsigned int a_trsize;
  61. unsigned int a_drsize;
  62. } uexec;
  63. int signal;
  64. size_t u_tsize;
  65. size_t u_dsize;
  66. size_t u_ssize;
  67. char u_comm[17];
  68. struct sunos_fpu fpu;
  69. unsigned int sigcode;
  70. };
  71. #define NBPG 0x2000
  72. #define UPAGES 1
  73. #define SUNOS_CORE_MAGIC 0x080456
  74. #endif