mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
1e8341ae0c
commit
565c2f249a
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue