diff options
author | Kelly Devilliv <kelly.devilliv@gmail.com> | 2021-11-01 23:05:02 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2021-12-08 14:15:54 +0800 |
commit | a0793fdad9a11a32bc6d21317c93c83f4aa82ebc (patch) | |
tree | bc07a504fe428a6462f1c6cf4000fcee45567fd7 | |
parent | 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff) | |
download | linux-a0793fdad9a11a32bc6d21317c93c83f4aa82ebc.tar.gz linux-a0793fdad9a11a32bc6d21317c93c83f4aa82ebc.tar.bz2 linux-a0793fdad9a11a32bc6d21317c93c83f4aa82ebc.zip |
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>
-rw-r--r-- | arch/csky/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/csky/kernel/traps.c b/arch/csky/kernel/traps.c index e5fbf8653a21..2020af88b636 100644 --- a/arch/csky/kernel/traps.c +++ b/arch/csky/kernel/traps.c @@ -209,7 +209,7 @@ asmlinkage void do_trap_illinsn(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); #else 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) { -#ifdef CONFIG_CPU_HAS_FP +#ifdef CONFIG_CPU_HAS_FPU if (user_mode(regs) && fpu_libc_helper(regs)) return; #endif |