OSDN Git Service

powerpc/mm: The 8xx doesn't call do_page_fault() for breakpoints
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 19 Apr 2017 12:56:32 +0000 (14:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Jun 2017 09:20:12 +0000 (19:20 +1000)
The 8xx has a dedicated exception for breakpoints, that directly
calls do_break()

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c

index ab96221..4c42263 100644 (file)
@@ -254,7 +254,7 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
        }
 
 #if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE) || \
-                            defined(CONFIG_PPC_BOOK3S_64))
+      defined(CONFIG_PPC_BOOK3S_64) || defined(CONFIG_PPC_8xx))
        if (error_code & DSISR_DABRMATCH) {
                /* breakpoint match */
                do_break(regs, address, error_code);