sigcontext.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) sigcontext.h (37744feebc086908fd89760650f458ab19071750)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef __ASM_SH_SIGCONTEXT_H
3#define __ASM_SH_SIGCONTEXT_H
4
5struct sigcontext {
6 unsigned long oldmask;
7
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef __ASM_SH_SIGCONTEXT_H
3#define __ASM_SH_SIGCONTEXT_H
4
5struct sigcontext {
6 unsigned long oldmask;
7
8#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
9 /* CPU registers */
8 /* CPU registers */
10 unsigned long long sc_regs[63];
11 unsigned long long sc_tregs[8];
12 unsigned long long sc_pc;
13 unsigned long long sc_sr;
14
15 /* FPU registers */
16 unsigned long long sc_fpregs[32];
17 unsigned int sc_fpscr;
18 unsigned int sc_fpvalid;
19#else
20 /* CPU registers */
21 unsigned long sc_regs[16];
22 unsigned long sc_pc;
23 unsigned long sc_pr;
24 unsigned long sc_sr;
25 unsigned long sc_gbr;
26 unsigned long sc_mach;
27 unsigned long sc_macl;
28
29 /* FPU registers */
30 unsigned long sc_fpregs[16];
31 unsigned long sc_xfpregs[16];
32 unsigned int sc_fpscr;
33 unsigned int sc_fpul;
34 unsigned int sc_ownedfp;
9 unsigned long sc_regs[16];
10 unsigned long sc_pc;
11 unsigned long sc_pr;
12 unsigned long sc_sr;
13 unsigned long sc_gbr;
14 unsigned long sc_mach;
15 unsigned long sc_macl;
16
17 /* FPU registers */
18 unsigned long sc_fpregs[16];
19 unsigned long sc_xfpregs[16];
20 unsigned int sc_fpscr;
21 unsigned int sc_fpul;
22 unsigned int sc_ownedfp;
35#endif
36};
37
38#endif /* __ASM_SH_SIGCONTEXT_H */
23};
24
25#endif /* __ASM_SH_SIGCONTEXT_H */