Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Use patch_exception to update the debug exception handler

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Kevin Hao and committed by
Benjamin Herrenschmidt
565c2f24 1e8341ae

+1 -5
+1 -5
arch/powerpc/kernel/setup_64.c
··· 520 520 #ifdef CONFIG_PPC_BOOK3E 521 521 static void __init exc_lvl_early_init(void) 522 522 { 523 - extern unsigned int interrupt_base_book3e; 524 - extern unsigned int exc_debug_debug_book3e; 525 - 526 523 unsigned int i; 527 524 528 525 for_each_possible_cpu(i) { ··· 532 535 } 533 536 534 537 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) 535 - patch_branch(&interrupt_base_book3e + (0x040 / 4) + 1, 536 - (unsigned long)&exc_debug_debug_book3e, 0); 538 + patch_exception(0x040, exc_debug_debug_book3e); 537 539 } 538 540 #else 539 541 #define exc_lvl_early_init()