aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2015-07-06 15:02:37 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-08-12 16:33:21 +0200
commitb411a8a3b44d76e782ba4bc6893068f3f590fe8a (patch)
tree3883aebb02b5e407b6cd09c981ecc3f9b9108ff0 /arch
parent755a47431bd5deb3ecadc1f0c944c74569b590b6 (diff)
downloadkernel_samsung_smdk4412-b411a8a3b44d76e782ba4bc6893068f3f590fe8a.zip
kernel_samsung_smdk4412-b411a8a3b44d76e782ba4bc6893068f3f590fe8a.tar.gz
kernel_samsung_smdk4412-b411a8a3b44d76e782ba4bc6893068f3f590fe8a.tar.bz2
s390/process: fix sfpc inline assembly
commit e47994dd44bcb4a77b4152bd0eada585934703c0 upstream. The sfpc inline assembly within execve_tail() may incorrectly set bits 28-31 of the sfpc instruction to a value which is not zero. These bits however are currently unused and therefore should be zero so we won't get surprised if these bits will be used in the future. Therefore remove the second operand from the inline assembly. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
index 53088e2..2ba1226 100644
--- a/arch/s390/kernel/process.c
+++ b/arch/s390/kernel/process.c
@@ -250,7 +250,7 @@ asmlinkage void execve_tail(void)
{
current->thread.fp_regs.fpc = 0;
if (MACHINE_HAS_IEEE)
- asm volatile("sfpc %0,%0" : : "d" (0));
+ asm volatile("sfpc %0" : : "d" (0));
}
/*