Pārlūkot izejas kodu

arm, arm64: export __hyp_stub_vectors

HVC_GET_VECTORS got removed. External hypervisors, like Jailhouse, need
this address when they are deactivated, in order to restore original
state.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[t-kristo@ti.com: moved the export clauses under arm*ksyms.c to avoid build
 failures]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Ralf Ramsauer 6 gadi atpakaļ
vecāks
revīzija
6c809904ef
2 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 5 0
      arch/arm/kernel/armksyms.c
  2. 4 0
      arch/arm64/kernel/arm64ksyms.c

+ 5 - 0
arch/arm/kernel/armksyms.c

@@ -182,3 +182,8 @@ EXPORT_SYMBOL(__pv_offset);
 EXPORT_SYMBOL(__arm_smccc_smc);
 EXPORT_SYMBOL(__arm_smccc_hvc);
 #endif
+
+#ifdef CONFIG_ARM_VIRT_EXT
+extern char __hyp_stub_vectors[];
+EXPORT_SYMBOL(__hyp_stub_vectors);
+#endif

+ 4 - 0
arch/arm64/kernel/arm64ksyms.c

@@ -83,3 +83,7 @@ extern long long __ashrti3(long long a, int b);
 EXPORT_SYMBOL(__ashrti3);
 extern long long __lshrti3(long long a, int b);
 EXPORT_SYMBOL(__lshrti3);
+
+	/* hyp-stub.S */
+extern char __hyp_stub_vectors[];
+EXPORT_SYMBOL(__hyp_stub_vectors);