diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-10 06:07:57 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:43 -0500 |
commit | f7a7b15344e2bccdd1c73d42685edfe7d43ec5b7 (patch) | |
tree | 87280639daf814c9a818994926785faf9daded88 /include/asm-sh/sigcontext.h | |
parent | 76168c21b78a0bd684d4687d14a2bd76bcf92762 (diff) |
sh: Move in the SH-5 signal trampoline impl.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/sigcontext.h')
-rw-r--r-- | include/asm-sh/sigcontext.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-sh/sigcontext.h b/include/asm-sh/sigcontext.h index eb8effba2e80..8583143fa28f 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; |
@@ -21,6 +33,7 @@ struct sigcontext { | |||
21 | unsigned int sc_fpul; | 33 | unsigned int sc_fpul; |
22 | unsigned int sc_ownedfp; | 34 | unsigned int sc_ownedfp; |
23 | #endif | 35 | #endif |
36 | #endif | ||
24 | }; | 37 | }; |
25 | 38 | ||
26 | #endif /* __ASM_SH_SIGCONTEXT_H */ | 39 | #endif /* __ASM_SH_SIGCONTEXT_H */ |