diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2021-12-01 15:41:39 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-02 12:57:23 +0100 |
commit | 935b534c24f014325b72a3619bbbdc18191f9c3d (patch) | |
tree | d9e1ffd153608fa4e206b9a20fdc896d3e40597f /arch/powerpc/mm/book3s64/slb.c | |
parent | powerpc/pseries: Stop selecting PPC_HASH_MMU_NATIVE (diff) | |
download | linux-935b534c24f014325b72a3619bbbdc18191f9c3d.tar.xz linux-935b534c24f014325b72a3619bbbdc18191f9c3d.zip |
powerpc/64s: Move and rename do_bad_slb_fault as it is not hash specific
slb.c is hash-specific SLB management, but do_bad_slb_fault deals with
segment interrupts that occur with radix MMU as well.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211201144153.2456614-5-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/mm/book3s64/slb.c')
-rw-r--r-- | arch/powerpc/mm/book3s64/slb.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/mm/book3s64/slb.c b/arch/powerpc/mm/book3s64/slb.c index f0037bcc47a0..31f4cef3adac 100644 --- a/arch/powerpc/mm/book3s64/slb.c +++ b/arch/powerpc/mm/book3s64/slb.c @@ -868,19 +868,3 @@ DEFINE_INTERRUPT_HANDLER_RAW(do_slb_fault) return err; } } - -DEFINE_INTERRUPT_HANDLER(do_bad_slb_fault) -{ - int err = regs->result; - - if (err == -EFAULT) { - if (user_mode(regs)) - _exception(SIGSEGV, regs, SEGV_BNDERR, regs->dar); - else - bad_page_fault(regs, SIGSEGV); - } else if (err == -EINVAL) { - unrecoverable_exception(regs); - } else { - BUG(); - } -} |