sigcontext.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 _UAPI_ASM_SIGCONTEXT_H
  10. #define _UAPI_ASM_SIGCONTEXT_H
  11. #include <linux/types.h>
  12. #include <asm/sgidefs.h>
  13. /* Bits which may be set in sc_used_math */
  14. #define USEDMATH_FP (1 << 0)
  15. #define USEDMATH_MSA (1 << 1)
  16. #if _MIPS_SIM == _MIPS_SIM_ABI32
  17. /*
  18. * Keep this struct definition in sync with the sigcontext fragment
  19. * in arch/mips/tools/offset.c
  20. */
  21. struct sigcontext {
  22. unsigned int sc_regmask; /* Unused */
  23. unsigned int sc_status; /* Unused */
  24. unsigned long long sc_pc;
  25. unsigned long long sc_regs[32];
  26. unsigned long long sc_fpregs[32];
  27. unsigned int sc_acx; /* Was sc_ownedfp */
  28. unsigned int sc_fpc_csr;
  29. unsigned int sc_fpc_eir; /* Unused */
  30. unsigned int sc_used_math;
  31. unsigned int sc_dsp; /* dsp status, was sc_ssflags */
  32. unsigned long long sc_mdhi;
  33. unsigned long long sc_mdlo;
  34. unsigned long sc_hi1; /* Was sc_cause */
  35. unsigned long sc_lo1; /* Was sc_badvaddr */
  36. unsigned long sc_hi2; /* Was sc_sigset[4] */
  37. unsigned long sc_lo2;
  38. unsigned long sc_hi3;
  39. unsigned long sc_lo3;
  40. unsigned long long sc_msaregs[32]; /* Most significant 64 bits */
  41. unsigned long sc_msa_csr;
  42. };
  43. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  44. #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
  45. #include <linux/posix_types.h>
  46. /*
  47. * Keep this struct definition in sync with the sigcontext fragment
  48. * in arch/mips/tools/offset.c
  49. *
  50. * Warning: this structure illdefined with sc_badvaddr being just an unsigned
  51. * int so it was changed to unsigned long in 2.6.0-test1. This may break
  52. * binary compatibility - no prisoners.
  53. * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
  54. * entries, add sc_dsp and sc_reserved for padding. No prisoners.
  55. */
  56. struct sigcontext {
  57. __u64 sc_regs[32];
  58. __u64 sc_fpregs[32];
  59. __u64 sc_mdhi;
  60. __u64 sc_hi1;
  61. __u64 sc_hi2;
  62. __u64 sc_hi3;
  63. __u64 sc_mdlo;
  64. __u64 sc_lo1;
  65. __u64 sc_lo2;
  66. __u64 sc_lo3;
  67. __u64 sc_pc;
  68. __u32 sc_fpc_csr;
  69. __u32 sc_used_math;
  70. __u32 sc_dsp;
  71. __u32 sc_reserved;
  72. __u64 sc_msaregs[32];
  73. __u32 sc_msa_csr;
  74. };
  75. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
  76. #endif /* _UAPI_ASM_SIGCONTEXT_H */