sigcontext.h 2.6 KB

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