summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/virt.h
diff options
context:
space:
mode:
authorMarc Zyngier2016-06-30 19:40:41 +0200
committerChristoffer Dall2016-07-03 23:41:27 +0200
commit1df3e2347a432fec7ec4aea67161986e116f68eb (patch)
treeb0c183477ff92caf601581ff5cb11a6681c732f4 /arch/arm/include/asm/virt.h
parentarm64: KVM: Refactor kern_hyp_va to deal with multiple offsets (diff)
downloadkernel-qcow2-linux-1df3e2347a432fec7ec4aea67161986e116f68eb.tar.gz
kernel-qcow2-linux-1df3e2347a432fec7ec4aea67161986e116f68eb.tar.xz
kernel-qcow2-linux-1df3e2347a432fec7ec4aea67161986e116f68eb.zip
arm/arm64: KVM: Export __hyp_text_start/end symbols
Declare the __hyp_text_start/end symbols in asm/virt.h so that they can be reused without having to declare them locally. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/virt.h')
-rw-r--r--arch/arm/include/asm/virt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/virt.h b/arch/arm/include/asm/virt.h
index d4ceaf5f299b..a2e75b84e2ae 100644
--- a/arch/arm/include/asm/virt.h
+++ b/arch/arm/include/asm/virt.h
@@ -80,6 +80,10 @@ static inline bool is_kernel_in_hyp_mode(void)
return false;
}
+/* The section containing the hypervisor idmap text */
+extern char __hyp_idmap_text_start[];
+extern char __hyp_idmap_text_end[];
+
/* The section containing the hypervisor text */
extern char __hyp_text_start[];
extern char __hyp_text_end[];