user.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _SYS_USER_H
  15. #define _SYS_USER_H 1
  16. struct sunos_regs
  17. {
  18. unsigned int psr, pc, npc, y;
  19. unsigned int regs[15];
  20. };
  21. struct sunos_fpqueue
  22. {
  23. unsigned int *addr;
  24. unsigned int inst;
  25. };
  26. struct sunos_fp
  27. {
  28. union
  29. {
  30. unsigned int regs[32];
  31. double reg_dbls[16];
  32. } fregs;
  33. unsigned int fsr;
  34. unsigned int flags;
  35. unsigned int extra;
  36. unsigned int fpq_count;
  37. struct sunos_fpqueue fpq[16];
  38. };
  39. struct sunos_fpu
  40. {
  41. struct sunos_fp fpstatus;
  42. };
  43. /* The SunOS core file header layout. */
  44. struct user {
  45. unsigned int magic;
  46. unsigned int len;
  47. struct sunos_regs regs;
  48. struct
  49. {
  50. unsigned char a_dynamic :1;
  51. unsigned char a_toolversion :7;
  52. unsigned char a_machtype;
  53. unsigned short a_info;
  54. unsigned int a_text;
  55. unsigned int a_data;
  56. unsigned int a_bss;
  57. unsigned int a_syms;
  58. unsigned int a_entry;
  59. unsigned int a_trsize;
  60. unsigned int a_drsize;
  61. } uexec;
  62. int signal;
  63. size_t u_tsize;
  64. size_t u_dsize;
  65. size_t u_ssize;
  66. char u_comm[17];
  67. struct sunos_fpu fpu;
  68. unsigned int sigcode;
  69. };
  70. #define NBPG 0x2000
  71. #define UPAGES 1
  72. #define SUNOS_CORE_MAGIC 0x080456
  73. #endif