summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-09-26 17:44:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-14 19:26:53 -0400
commit5230429ab1c20c348e17069230c24db8a6b53ca3 (patch)
tree452f1f33451d0e85136cef1c65ba3da654847acd /arch/sparc/kernel
parent1918c7f548dc5abfb37ab74bb3d036d36c92ba5e (diff)
downloadop-kernel-dev-5230429ab1c20c348e17069230c24db8a6b53ca3.zip
op-kernel-dev-5230429ab1c20c348e17069230c24db8a6b53ca3.tar.gz
sparc64: take fprs_write() and friends to start_thread()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/process_64.c6
-rw-r--r--arch/sparc/kernel/sys_sparc32.c7
2 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index e375123..55aa68d 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -692,12 +692,6 @@ asmlinkage int sparc_execve(struct pt_regs *regs)
(const char __user *const __user *)
regs->u_regs[base + UREG_I2], regs);
putname(filename);
- if (!error) {
- fprs_write(0);
- current_thread_info()->xfsr[0] = 0;
- current_thread_info()->fpsaved[0] = 0;
- regs->tstate &= ~TSTATE_PEF;
- }
out:
return error;
}
diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c
index c323981..2f116ff 100644
--- a/arch/sparc/kernel/sys_sparc32.c
+++ b/arch/sparc/kernel/sys_sparc32.c
@@ -421,13 +421,6 @@ asmlinkage long sparc32_execve(struct pt_regs *regs)
compat_ptr(regs->u_regs[base + UREG_I2]), regs);
putname(filename);
-
- if (!error) {
- fprs_write(0);
- current_thread_info()->xfsr[0] = 0;
- current_thread_info()->fpsaved[0] = 0;
- regs->tstate &= ~TSTATE_PEF;
- }
out:
return error;
}
OpenPOWER on IntegriCloud