sigcontext.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. /* scalar FP context was used */
  14. #define USED_FP (1 << 0)
  15. /* the value of Status.FR when context was saved */
  16. #define USED_FR1 (1 << 1)
  17. /* FR=1, but with odd singles in bits 63:32 of preceding even double */
  18. #define USED_HYBRID_FPRS (1 << 2)
  19. /* extended context was used, see struct extcontext for details */
  20. #define USED_EXTCONTEXT (1 << 3)
  21. #if _MIPS_SIM == _MIPS_SIM_ABI32
  22. /*
  23. * Keep this struct definition in sync with the sigcontext fragment
  24. * in arch/mips/kernel/asm-offsets.c
  25. */
  26. struct sigcontext {
  27. unsigned int sc_regmask; /* Unused */
  28. unsigned int sc_status; /* Unused */
  29. unsigned long long sc_pc;
  30. unsigned long long sc_regs[32];
  31. unsigned long long sc_fpregs[32];
  32. unsigned int sc_acx; /* Was sc_ownedfp */
  33. unsigned int sc_fpc_csr;
  34. unsigned int sc_fpc_eir; /* Unused */
  35. unsigned int sc_used_math;
  36. unsigned int sc_dsp; /* dsp status, was sc_ssflags */
  37. unsigned long long sc_mdhi;
  38. unsigned long long sc_mdlo;
  39. unsigned long sc_hi1; /* Was sc_cause */
  40. unsigned long sc_lo1; /* Was sc_badvaddr */
  41. unsigned long sc_hi2; /* Was sc_sigset[4] */
  42. unsigned long sc_lo2;
  43. unsigned long sc_hi3;
  44. unsigned long sc_lo3;
  45. };
  46. #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
  47. #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
  48. #include <linux/posix_types.h>
  49. /*
  50. * Keep this struct definition in sync with the sigcontext fragment
  51. * in arch/mips/kernel/asm-offsets.c
  52. *
  53. * Warning: this structure illdefined with sc_badvaddr being just an unsigned
  54. * int so it was changed to unsigned long in 2.6.0-test1. This may break
  55. * binary compatibility - no prisoners.
  56. * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
  57. * entries, add sc_dsp and sc_reserved for padding. No prisoners.
  58. */
  59. struct sigcontext {
  60. __u64 sc_regs[32];
  61. __u64 sc_fpregs[32];
  62. __u64 sc_mdhi;
  63. __u64 sc_hi1;
  64. __u64 sc_hi2;
  65. __u64 sc_hi3;
  66. __u64 sc_mdlo;
  67. __u64 sc_lo1;
  68. __u64 sc_lo2;
  69. __u64 sc_lo3;
  70. __u64 sc_pc;
  71. __u32 sc_fpc_csr;
  72. __u32 sc_used_math;
  73. __u32 sc_dsp;
  74. __u32 sc_reserved;
  75. };
  76. #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
  77. #endif /* _ASM_SIGCONTEXT_H */