powerpc/64s: Fix unrelocated interrupt trampoline address test
The recent commit got this test wrong, it declared the assembler
symbols the wrong way, and also used the wrong symbol name
(xxx_start rather than start_xxx, see asm/head-64.h).
Fixes: ccd477028a
("powerpc/64s: Fix HV NMI vs HV interrupt recoverability test")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
11f5acce2f
commit
bd3524feac
@@ -49,14 +49,6 @@ int exit_vmx_usercopy(void);
|
||||
int enter_vmx_ops(void);
|
||||
void *exit_vmx_ops(void *dest);
|
||||
|
||||
/* Exceptions */
|
||||
#ifdef CONFIG_PPC_POWERNV
|
||||
extern unsigned long real_trampolines_start;
|
||||
extern unsigned long real_trampolines_end;
|
||||
extern unsigned long virt_trampolines_start;
|
||||
extern unsigned long virt_trampolines_end;
|
||||
#endif
|
||||
|
||||
/* Traps */
|
||||
long machine_check_early(struct pt_regs *regs);
|
||||
long hmi_exception_realmode(struct pt_regs *regs);
|
||||
|
@@ -17,6 +17,13 @@ extern char __end_interrupts[];
|
||||
extern char __prom_init_toc_start[];
|
||||
extern char __prom_init_toc_end[];
|
||||
|
||||
#ifdef CONFIG_PPC_POWERNV
|
||||
extern char start_real_trampolines[];
|
||||
extern char end_real_trampolines[];
|
||||
extern char start_virt_trampolines[];
|
||||
extern char end_virt_trampolines[];
|
||||
#endif
|
||||
|
||||
static inline int in_kernel_text(unsigned long addr)
|
||||
{
|
||||
if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
|
||||
|
Reference in New Issue
Block a user