From: Kevin Hao Date: Sat, 11 May 2013 23:26:23 +0000 (+0800) Subject: powerpc: Use patch_exception to update the debug exception handler X-Git-Tag: upstream/snapshot3+hdmi~3558^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=565c2f249a0cb549d419f4c92fb8642b404d42b5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git powerpc: Use patch_exception to update the debug exception handler Signed-off-by: Kevin Hao Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 4085aaa..5760b9b 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -520,9 +520,6 @@ static void __init irqstack_early_init(void) #ifdef CONFIG_PPC_BOOK3E static void __init exc_lvl_early_init(void) { - extern unsigned int interrupt_base_book3e; - extern unsigned int exc_debug_debug_book3e; - unsigned int i; for_each_possible_cpu(i) { @@ -535,8 +532,7 @@ static void __init exc_lvl_early_init(void) } if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) - patch_branch(&interrupt_base_book3e + (0x040 / 4) + 1, - (unsigned long)&exc_debug_debug_book3e, 0); + patch_exception(0x040, exc_debug_debug_book3e); } #else #define exc_lvl_early_init()