Blame view

include/asm-mips/sigcontext.h 2.63 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
  /*
   * This file is subject to the terms and conditions of the GNU General Public
   * License.  See the file "COPYING" in the main directory of this archive
   * for more details.
   *
   * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
   * Copyright (C) 1999 Silicon Graphics, Inc.
   */
  #ifndef _ASM_SIGCONTEXT_H
  #define _ASM_SIGCONTEXT_H
  
  #include <asm/sgidefs.h>
42a3b4f25   Ralf Baechle   [PATCH] mips: nuk...
13

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
16
17
18
19
20
21
  #if _MIPS_SIM == _MIPS_SIM_ABI32
  
  /*
   * Keep this struct definition in sync with the sigcontext fragment
   * in arch/mips/tools/offset.c
   */
  struct sigcontext {
  	unsigned int		sc_regmask;	/* Unused */
6bfe96616   Franck Bui-Huu   [MIPS] signal32: ...
22
  	unsigned int		sc_status;	/* Unused */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
23
24
25
  	unsigned long long	sc_pc;
  	unsigned long long	sc_regs[32];
  	unsigned long long	sc_fpregs[32];
9693a8537   Franck Bui-Huu   [MIPS] Add basic ...
26
  	unsigned int		sc_acx;		/* Was sc_ownedfp */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
27
28
29
  	unsigned int		sc_fpc_csr;
  	unsigned int		sc_fpc_eir;	/* Unused */
  	unsigned int		sc_used_math;
e50c0a8fa   Ralf Baechle   Support the MIPS3...
30
  	unsigned int		sc_dsp;		/* dsp status, was sc_ssflags */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
31
32
  	unsigned long long	sc_mdhi;
  	unsigned long long	sc_mdlo;
e50c0a8fa   Ralf Baechle   Support the MIPS3...
33
34
35
36
37
38
  	unsigned long		sc_hi1;		/* Was sc_cause */
  	unsigned long		sc_lo1;		/* Was sc_badvaddr */
  	unsigned long		sc_hi2;		/* Was sc_sigset[4] */
  	unsigned long		sc_lo2;
  	unsigned long		sc_hi3;
  	unsigned long		sc_lo3;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
39
40
41
  };
  
  #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
42a3b4f25   Ralf Baechle   [PATCH] mips: nuk...
42

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
43
  #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
269dd2b25   Atsushi Nemoto   [MIPS] Fix struct...
44
  #include <linux/posix_types.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
45
46
47
48
49
50
51
  /*
   * Keep this struct definition in sync with the sigcontext fragment
   * in arch/mips/tools/offset.c
   *
   * Warning: this structure illdefined with sc_badvaddr being just an unsigned
   * int so it was changed to unsigned long in 2.6.0-test1.  This may break
   * binary compatibility - no prisoners.
e50c0a8fa   Ralf Baechle   Support the MIPS3...
52
53
   * DSP ASE in 2.6.12-rc4.  Turn sc_mdhi and sc_mdlo into an array of four
   * entries, add sc_dsp and sc_reserved for padding.  No prisoners.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
54
55
   */
  struct sigcontext {
269dd2b25   Atsushi Nemoto   [MIPS] Fix struct...
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  	__u64	sc_regs[32];
  	__u64	sc_fpregs[32];
  	__u64	sc_mdhi;
  	__u64	sc_hi1;
  	__u64	sc_hi2;
  	__u64	sc_hi3;
  	__u64	sc_mdlo;
  	__u64	sc_lo1;
  	__u64	sc_lo2;
  	__u64	sc_lo3;
  	__u64	sc_pc;
  	__u32	sc_fpc_csr;
  	__u32	sc_used_math;
  	__u32	sc_dsp;
  	__u32	sc_reserved;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
71
72
73
  };
  
  #ifdef __KERNEL__
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
74
  struct sigcontext32 {
e50c0a8fa   Ralf Baechle   Support the MIPS3...
75
  	__u32		sc_regmask;	/* Unused */
6bfe96616   Franck Bui-Huu   [MIPS] signal32: ...
76
  	__u32		sc_status;	/* Unused */
e50c0a8fa   Ralf Baechle   Support the MIPS3...
77
78
79
  	__u64		sc_pc;
  	__u64		sc_regs[32];
  	__u64		sc_fpregs[32];
9693a8537   Franck Bui-Huu   [MIPS] Add basic ...
80
  	__u32		sc_acx;		/* Only MIPS32; was sc_ownedfp */
e50c0a8fa   Ralf Baechle   Support the MIPS3...
81
82
83
84
85
86
87
88
89
90
91
92
  	__u32		sc_fpc_csr;
  	__u32		sc_fpc_eir;	/* Unused */
  	__u32		sc_used_math;
  	__u32		sc_dsp;		/* dsp status, was sc_ssflags */
  	__u64		sc_mdhi;
  	__u64		sc_mdlo;
  	__u32		sc_hi1;		/* Was sc_cause */
  	__u32		sc_lo1;		/* Was sc_badvaddr */
  	__u32		sc_hi2;		/* Was sc_sigset[4] */
  	__u32		sc_lo2;
  	__u32		sc_hi3;
  	__u32		sc_lo3;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
93
94
95
96
97
98
  };
  #endif /* __KERNEL__ */
  
  #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
  
  #endif /* _ASM_SIGCONTEXT_H */