aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-10 06:27:03 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:44 -0500
commit256b22ca66987c537064dc25b0b267966189b5ba (patch)
tree482f095562a3e1614b67de5352f09d4feea673f1 /arch/sh
parent27a511c6f37c05c5cf8fae9fe513f60d87af9158 (diff)
sh: Have SH-5 provide an {en,dis}able_fpu() impl.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/ptrace_64.c8
-rw-r--r--arch/sh/kernel/traps_64.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c
index 8a2d339cf760..14e7d5e5679a 100644
--- a/arch/sh/kernel/ptrace_64.c
+++ b/arch/sh/kernel/ptrace_64.c
@@ -74,9 +74,9 @@ get_fpu_long(struct task_struct *task, unsigned long addr)
74 } 74 }
75 75
76 if (last_task_used_math == task) { 76 if (last_task_used_math == task) {
77 grab_fpu(); 77 enable_fpu();
78 fpsave(&task->thread.fpu.hard); 78 fpsave(&task->thread.fpu.hard);
79 release_fpu(); 79 disable_fpu();
80 last_task_used_math = 0; 80 last_task_used_math = 0;
81 regs->sr |= SR_FD; 81 regs->sr |= SR_FD;
82 } 82 }
@@ -110,9 +110,9 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data)
110 fpinit(&task->thread.fpu.hard); 110 fpinit(&task->thread.fpu.hard);
111 set_stopped_child_used_math(task); 111 set_stopped_child_used_math(task);
112 } else if (last_task_used_math == task) { 112 } else if (last_task_used_math == task) {
113 grab_fpu(); 113 enable_fpu();
114 fpsave(&task->thread.fpu.hard); 114 fpsave(&task->thread.fpu.hard);
115 release_fpu(); 115 disable_fpu();
116 last_task_used_math = 0; 116 last_task_used_math = 0;
117 regs->sr |= SR_FD; 117 regs->sr |= SR_FD;
118 } 118 }
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c
index 742ce18b6820..0f4ea3ac3e0b 100644
--- a/arch/sh/kernel/traps_64.c
+++ b/arch/sh/kernel/traps_64.c
@@ -617,9 +617,9 @@ static int misaligned_fpu_load(struct pt_regs *regs,
617 context switch the registers into memory so they can be 617 context switch the registers into memory so they can be
618 indexed by register number. */ 618 indexed by register number. */
619 if (last_task_used_math == current) { 619 if (last_task_used_math == current) {
620 grab_fpu(); 620 enable_fpu();
621 fpsave(&current->thread.fpu.hard); 621 fpsave(&current->thread.fpu.hard);
622 release_fpu(); 622 disable_fpu();
623 last_task_used_math = NULL; 623 last_task_used_math = NULL;
624 regs->sr |= SR_FD; 624 regs->sr |= SR_FD;
625 } 625 }
@@ -690,9 +690,9 @@ static int misaligned_fpu_store(struct pt_regs *regs,
690 context switch the registers into memory so they can be 690 context switch the registers into memory so they can be
691 indexed by register number. */ 691 indexed by register number. */
692 if (last_task_used_math == current) { 692 if (last_task_used_math == current) {
693 grab_fpu(); 693 enable_fpu();
694 fpsave(&current->thread.fpu.hard); 694 fpsave(&current->thread.fpu.hard);
695 release_fpu(); 695 disable_fpu();
696 last_task_used_math = NULL; 696 last_task_used_math = NULL;
697 regs->sr |= SR_FD; 697 regs->sr |= SR_FD;
698 } 698 }