aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-26 06:38:36 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:57 -0500
commit74d99a5e262229ee865f6f68528d10b82471ead6 (patch)
tree1e2382c8779e1ee06226f9cc9acbf9a63eb5fc44 /include/asm-sh
parenta8f67f4b4d4b74cd14d3540ade8657ebee543340 (diff)
sh: SH-2A FPU support.
Signed-off-by: Kieran Bingham <kbingham@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/fpu.h2
-rw-r--r--include/asm-sh/sigcontext.h3
-rw-r--r--include/asm-sh/system.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-sh/fpu.h b/include/asm-sh/fpu.h
index 33db698a6b4d..f8429880a270 100644
--- a/include/asm-sh/fpu.h
+++ b/include/asm-sh/fpu.h
@@ -26,6 +26,8 @@ extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs);
26#define save_fpu(tsk, regs) do { } while (0) 26#define save_fpu(tsk, regs) do { } while (0)
27#endif 27#endif
28 28
29extern int do_fpu_inst(unsigned short, struct pt_regs *);
30
29#define unlazy_fpu(tsk, regs) do { \ 31#define unlazy_fpu(tsk, regs) do { \
30 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \ 32 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \
31 save_fpu(tsk, regs); \ 33 save_fpu(tsk, regs); \
diff --git a/include/asm-sh/sigcontext.h b/include/asm-sh/sigcontext.h
index 8583143fa28f..8ce1435bc0bf 100644
--- a/include/asm-sh/sigcontext.h
+++ b/include/asm-sh/sigcontext.h
@@ -25,7 +25,8 @@ struct sigcontext {
25 unsigned long sc_mach; 25 unsigned long sc_mach;
26 unsigned long sc_macl; 26 unsigned long sc_macl;
27 27
28#if defined(__SH4__) || defined(CONFIG_CPU_SH4) 28#if defined(__SH4__) || defined(CONFIG_CPU_SH4) || \
29 defined(__SH2A__) || defined(CONFIG_CPU_SH2A)
29 /* FPU registers */ 30 /* FPU registers */
30 unsigned long sc_fpregs[16]; 31 unsigned long sc_fpregs[16];
31 unsigned long sc_xfpregs[16]; 32 unsigned long sc_xfpregs[16];
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h
index 8b01fc4a56af..ad3d2a636130 100644
--- a/include/asm-sh/system.h
+++ b/include/asm-sh/system.h
@@ -205,6 +205,8 @@ asmlinkage void name##_trap_handler(unsigned int vec, struct pt_regs *regs)
205BUILD_TRAP_HANDLER(address_error); 205BUILD_TRAP_HANDLER(address_error);
206BUILD_TRAP_HANDLER(debug); 206BUILD_TRAP_HANDLER(debug);
207BUILD_TRAP_HANDLER(bug); 207BUILD_TRAP_HANDLER(bug);
208BUILD_TRAP_HANDLER(fpu_error);
209BUILD_TRAP_HANDLER(fpu_state_restore);
208 210
209#define arch_align_stack(x) (x) 211#define arch_align_stack(x) (x)
210 212