mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	csky: fix typo of fpu config macro
Fix typo which will cause fpe and privilege exception error. Signed-off-by: Kelly Devilliv <kelly.devilliv@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
This commit is contained in:
		
							parent
							
								
									0fcfb00b28
								
							
						
					
					
						commit
						a0793fdad9
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -209,7 +209,7 @@ asmlinkage void do_trap_illinsn(struct pt_regs *regs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
asmlinkage void do_trap_fpe(struct pt_regs *regs)
 | 
					asmlinkage void do_trap_fpe(struct pt_regs *regs)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#ifdef CONFIG_CPU_HAS_FP
 | 
					#ifdef CONFIG_CPU_HAS_FPU
 | 
				
			||||||
	return fpu_fpe(regs);
 | 
						return fpu_fpe(regs);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
	do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc,
 | 
						do_trap_error(regs, SIGILL, ILL_ILLOPC, regs->pc,
 | 
				
			||||||
| 
						 | 
					@ -219,7 +219,7 @@ asmlinkage void do_trap_fpe(struct pt_regs *regs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
asmlinkage void do_trap_priv(struct pt_regs *regs)
 | 
					asmlinkage void do_trap_priv(struct pt_regs *regs)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#ifdef CONFIG_CPU_HAS_FP
 | 
					#ifdef CONFIG_CPU_HAS_FPU
 | 
				
			||||||
	if (user_mode(regs) && fpu_libc_helper(regs))
 | 
						if (user_mode(regs) && fpu_libc_helper(regs))
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue