hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/include/asm/virt.h
....@@ -1,19 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (c) 2012 Linaro Limited.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along
15
- * with this program; if not, write to the Free Software Foundation, Inc.,
16
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
174 */
185
196 #ifndef VIRT_H
....@@ -52,8 +39,6 @@
5239 sync_cache_r(&__boot_cpu_mode);
5340 }
5441
55
-void __hyp_set_vectors(unsigned long phys_vector_base);
56
-void __hyp_reset_vectors(void);
5742 #else
5843 #define __boot_cpu_mode (SVC_MODE)
5944 #define sync_boot_mode()
....@@ -80,18 +65,6 @@
8065 return false;
8166 }
8267
83
-static inline bool has_vhe(void)
84
-{
85
- return false;
86
-}
87
-
88
-/* The section containing the hypervisor idmap text */
89
-extern char __hyp_idmap_text_start[];
90
-extern char __hyp_idmap_text_end[];
91
-
92
-/* The section containing the hypervisor text */
93
-extern char __hyp_text_start[];
94
-extern char __hyp_text_end[];
9568 #endif
9669
9770 #else
....@@ -100,9 +73,6 @@
10073
10174 #define HVC_SET_VECTORS 0
10275 #define HVC_SOFT_RESTART 1
103
-#define HVC_RESET_VECTORS 2
104
-
105
-#define HVC_STUB_HCALL_NR 3
10676
10777 #endif /* __ASSEMBLY__ */
10878