diff options
Diffstat (limited to 'include/asm-sh/sigcontext.h')
-rw-r--r-- | include/asm-sh/sigcontext.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/asm-sh/sigcontext.h b/include/asm-sh/sigcontext.h index eb8effba2e8..8ce1435bc0b 100644 --- a/include/asm-sh/sigcontext.h +++ b/include/asm-sh/sigcontext.h | |||
@@ -4,6 +4,18 @@ | |||
4 | struct sigcontext { | 4 | struct sigcontext { |
5 | unsigned long oldmask; | 5 | unsigned long oldmask; |
6 | 6 | ||
7 | #if defined(__SH5__) || defined(CONFIG_CPU_SH5) | ||
8 | /* CPU registers */ | ||
9 | unsigned long long sc_regs[63]; | ||
10 | unsigned long long sc_tregs[8]; | ||
11 | unsigned long long sc_pc; | ||
12 | unsigned long long sc_sr; | ||
13 | |||
14 | /* FPU registers */ | ||
15 | unsigned long long sc_fpregs[32]; | ||
16 | unsigned int sc_fpscr; | ||
17 | unsigned int sc_fpvalid; | ||
18 | #else | ||
7 | /* CPU registers */ | 19 | /* CPU registers */ |
8 | unsigned long sc_regs[16]; | 20 | unsigned long sc_regs[16]; |
9 | unsigned long sc_pc; | 21 | unsigned long sc_pc; |
@@ -13,7 +25,8 @@ struct sigcontext { | |||
13 | unsigned long sc_mach; | 25 | unsigned long sc_mach; |
14 | unsigned long sc_macl; | 26 | unsigned long sc_macl; |
15 | 27 | ||
16 | #if defined(__SH4__) || defined(CONFIG_CPU_SH4) | 28 | #if defined(__SH4__) || defined(CONFIG_CPU_SH4) || \ |
29 | defined(__SH2A__) || defined(CONFIG_CPU_SH2A) | ||
17 | /* FPU registers */ | 30 | /* FPU registers */ |
18 | unsigned long sc_fpregs[16]; | 31 | unsigned long sc_fpregs[16]; |
19 | unsigned long sc_xfpregs[16]; | 32 | unsigned long sc_xfpregs[16]; |
@@ -21,6 +34,7 @@ struct sigcontext { | |||
21 | unsigned int sc_fpul; | 34 | unsigned int sc_fpul; |
22 | unsigned int sc_ownedfp; | 35 | unsigned int sc_ownedfp; |
23 | #endif | 36 | #endif |
37 | #endif | ||
24 | }; | 38 | }; |
25 | 39 | ||
26 | #endif /* __ASM_SH_SIGCONTEXT_H */ | 40 | #endif /* __ASM_SH_SIGCONTEXT_H */ |