arm/arm64: KVM: Export __hyp_text_start/end symbols
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 30 Jun 2016 17:40:41 +0000 (18:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sun, 3 Jul 2016 21:41:27 +0000 (23:41 +0200)
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>
arch/arm/include/asm/virt.h
arch/arm/kvm/mmu.c
arch/arm64/include/asm/virt.h

index d4ceaf5f299b8d03d6e638a3ea5f72fb5b60a93e..a2e75b84e2ae6b4d3f37d7879bc024832c17d3c9 100644 (file)
@@ -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[];
index 679608fa1666a7ac1437aed058ac52a5a92880b2..f004e7017201a15e39f0da2afab3b4c5a40ec4b4 100644 (file)
@@ -32,8 +32,6 @@
 
 #include "trace.h"
 
-extern char  __hyp_idmap_text_start[], __hyp_idmap_text_end[];
-
 static pgd_t *boot_hyp_pgd;
 static pgd_t *hyp_pgd;
 static pgd_t *merged_hyp_pgd;
index dcbcf8dcbefbf7a41542941dcad3c3950bb9da2e..88aa8ec784f6a27e81c472a89ac89c4fa7c6f6f1 100644 (file)
@@ -82,6 +82,10 @@ extern void verify_cpu_run_el(void);
 static inline void verify_cpu_run_el(void) {}
 #endif
 
+/* 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[];