From 92aa2fe039835a73fec335517652de32eeb58e0a Mon Sep 17 00:00:00 2001 From: Christophe Leroy Date: Wed, 19 Apr 2017 14:56:32 +0200 Subject: [PATCH] powerpc/mm: The 8xx doesn't call do_page_fault() for breakpoints The 8xx has a dedicated exception for breakpoints, that directly calls do_break() Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman --- arch/powerpc/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index ab9622120696..4c422632047b 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c @@ -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);