sigcontext.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
  7. * Copyright (C) 1999 Silicon Graphics, Inc.
  8. */
  9. #ifndef _ASM_SIGCONTEXT_H
  10. #define _ASM_SIGCONTEXT_H
  11. #include <linux/types.h>
  12. #include <asm/sgidefs.h>
  13. #if _MIPS_SIM == _MIPS_SIM_ABI32
  14. /*
  15. * Keep this struct definition in sync with the sigcontext fragment
  16. * in arch/mips/tools/offset.c
  17. */
  18. struct sigcontext {
  19. unsigned int sc_regmask; /* Unused */
  20. unsigned int sc_status; /* Unused */
  21. unsigned long long sc_pc;
  22. unsigned long long sc_regs[32];
  23. unsigned long long sc_fpregs[32];
  24. unsigned int sc_acx; /* Was sc_ownedfp */
  25. unsigned int sc_fpc_csr;
  26. unsigned int sc_fpc_eir; /* Unused */
  27. unsigned int sc_used_math;
  28. unsigned int sc_dsp; /* dsp status, was sc_ssflags */
  29. unsigned long long sc_mdhi;
  30. unsigned long long sc_mdlo;
  31. unsigned long sc_hi1; /* Was sc_cause */
  32. unsigned long sc_lo1; /* Was sc_badvaddr */
  33. unsigned long sc_hi2; /* Was sc_sigset[4] */
  34. unsigned long sc_lo2;
  35. unsigned long sc_hi3;
  36. unsigned long sc_lo3;
  37. };
  38. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  39. #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
  40. #include <linux/posix_types.h>
  41. /*
  42. * Keep this struct definition in sync with the sigcontext fragment
  43. * in arch/mips/tools/offset.c
  44. *
  45. * Warning: this structure illdefined with sc_badvaddr being just an unsigned
  46. * int so it was changed to unsigned long in 2.6.0-test1. This may break
  47. * binary compatibility - no prisoners.
  48. * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
  49. * entries, add sc_dsp and sc_reserved for padding. No prisoners.
  50. */
  51. struct sigcontext {
  52. __u64 sc_regs[32];
  53. __u64 sc_fpregs[32];
  54. __u64 sc_mdhi;
  55. __u64 sc_hi1;
  56. __u64 sc_hi2;
  57. __u64 sc_hi3;
  58. __u64 sc_mdlo;
  59. __u64 sc_lo1;
  60. __u64 sc_lo2;
  61. __u64 sc_lo3;
  62. __u64 sc_pc;
  63. __u32 sc_fpc_csr;
  64. __u32 sc_used_math;
  65. __u32 sc_dsp;
  66. __u32 sc_reserved;
  67. };
  68. #ifdef __KERNEL__
  69. struct sigcontext32 {
  70. __u32 sc_regmask; /* Unused */
  71. __u32 sc_status; /* Unused */
  72. __u64 sc_pc;
  73. __u64 sc_regs[32];
  74. __u64 sc_fpregs[32];
  75. __u32 sc_acx; /* Only MIPS32; was sc_ownedfp */
  76. __u32 sc_fpc_csr;
  77. __u32 sc_fpc_eir; /* Unused */
  78. __u32 sc_used_math;
  79. __u32 sc_dsp; /* dsp status, was sc_ssflags */
  80. __u64 sc_mdhi;
  81. __u64 sc_mdlo;
  82. __u32 sc_hi1; /* Was sc_cause */
  83. __u32 sc_lo1; /* Was sc_badvaddr */
  84. __u32 sc_hi2; /* Was sc_sigset[4] */
  85. __u32 sc_lo2;
  86. __u32 sc_hi3;
  87. __u32 sc_lo3;
  88. };
  89. #endif /* __KERNEL__ */
  90. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
  91. #endif /* _ASM_SIGCONTEXT_H */