aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/sections.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-03-01 22:56:36 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2019-03-02 00:25:47 +1100
commitbd3524feac214f0ab9693c6d4c0cb5be8e1318b9 (patch)
treef76d1cc11bc6fbb35a1aa36019efc8e2bf64d3f6 /arch/powerpc/include/asm/sections.h
parentpowerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables (diff)
downloadlinux-dev-bd3524feac214f0ab9693c6d4c0cb5be8e1318b9.tar.xz
linux-dev-bd3524feac214f0ab9693c6d4c0cb5be8e1318b9.zip
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>
Diffstat (limited to 'arch/powerpc/include/asm/sections.h')
-rw-r--r--arch/powerpc/include/asm/sections.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h
index e335a8f846af..4a1664a8658d 100644
--- a/arch/powerpc/include/asm/sections.h
+++ b/arch/powerpc/include/asm/sections.h
@@ -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)