diff options
| author | Mark Brown <broonie@linaro.org> | 2014-01-10 11:52:05 +0000 | 
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-01-10 11:52:05 +0000 | 
| commit | fce6bd84d663b92997e0fa9c971ed2b2cdf08fb4 (patch) | |
| tree | c5b460cfc60b16a7c6718ae2613bb1d9cb98e5b8 /arch/powerpc/kernel/signal_32.c | |
| parent | 56d37d85438df38e150282baafe52dcd588854c7 (diff) | |
| parent | 374b105797c3d4f29c685f3be535c35f5689b30e (diff) | |
Merge tag 'v3.13-rc3' into asoc-arizona
Linux 3.13-rc3
Diffstat (limited to 'arch/powerpc/kernel/signal_32.c')
| -rw-r--r-- | arch/powerpc/kernel/signal_32.c | 16 | 
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index 1844298f5ea4..68027bfa5f8e 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel/signal_32.c @@ -445,6 +445,12 @@ static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame,  #endif /* CONFIG_ALTIVEC */  	if (copy_fpr_to_user(&frame->mc_fregs, current))  		return 1; + +	/* +	 * Clear the MSR VSX bit to indicate there is no valid state attached +	 * to this context, except in the specific case below where we set it. +	 */ +	msr &= ~MSR_VSX;  #ifdef CONFIG_VSX  	/*  	 * Copy VSR 0-31 upper half from thread_struct to local @@ -457,15 +463,7 @@ static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame,  		if (copy_vsx_to_user(&frame->mc_vsregs, current))  			return 1;  		msr |= MSR_VSX; -	} else if (!ctx_has_vsx_region) -		/* -		 * With a small context structure we can't hold the VSX -		 * registers, hence clear the MSR value to indicate the state -		 * was not saved. -		 */ -		msr &= ~MSR_VSX; - - +	}  #endif /* CONFIG_VSX */  #ifdef CONFIG_SPE  	/* save spe registers */  | 
