sh: Have SH-5 provide an {en,dis}able_fpu() impl.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2007-11-10 20:27:03 +09:00
rodzic 27a511c6f3
commit 256b22ca66
3 zmienionych plików z 21 dodań i 10 usunięć

Wyświetl plik

@@ -74,9 +74,9 @@ get_fpu_long(struct task_struct *task, unsigned long addr)
}
if (last_task_used_math == task) {
grab_fpu();
enable_fpu();
fpsave(&task->thread.fpu.hard);
release_fpu();
disable_fpu();
last_task_used_math = 0;
regs->sr |= SR_FD;
}
@@ -110,9 +110,9 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data)
fpinit(&task->thread.fpu.hard);
set_stopped_child_used_math(task);
} else if (last_task_used_math == task) {
grab_fpu();
enable_fpu();
fpsave(&task->thread.fpu.hard);
release_fpu();
disable_fpu();
last_task_used_math = 0;
regs->sr |= SR_FD;
}

Wyświetl plik

@@ -617,9 +617,9 @@ static int misaligned_fpu_load(struct pt_regs *regs,
context switch the registers into memory so they can be
indexed by register number. */
if (last_task_used_math == current) {
grab_fpu();
enable_fpu();
fpsave(&current->thread.fpu.hard);
release_fpu();
disable_fpu();
last_task_used_math = NULL;
regs->sr |= SR_FD;
}
@@ -690,9 +690,9 @@ static int misaligned_fpu_store(struct pt_regs *regs,
context switch the registers into memory so they can be
indexed by register number. */
if (last_task_used_math == current) {
grab_fpu();
enable_fpu();
fpsave(&current->thread.fpu.hard);
release_fpu();
disable_fpu();
last_task_used_math = NULL;
regs->sr |= SR_FD;
}