| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #ifndef VIRT_H |
|---|
| .. | .. |
|---|
| 52 | 39 | sync_cache_r(&__boot_cpu_mode); |
|---|
| 53 | 40 | } |
|---|
| 54 | 41 | |
|---|
| 55 | | -void __hyp_set_vectors(unsigned long phys_vector_base); |
|---|
| 56 | | -void __hyp_reset_vectors(void); |
|---|
| 57 | 42 | #else |
|---|
| 58 | 43 | #define __boot_cpu_mode (SVC_MODE) |
|---|
| 59 | 44 | #define sync_boot_mode() |
|---|
| .. | .. |
|---|
| 80 | 65 | return false; |
|---|
| 81 | 66 | } |
|---|
| 82 | 67 | |
|---|
| 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[]; |
|---|
| 95 | 68 | #endif |
|---|
| 96 | 69 | |
|---|
| 97 | 70 | #else |
|---|
| .. | .. |
|---|
| 100 | 73 | |
|---|
| 101 | 74 | #define HVC_SET_VECTORS 0 |
|---|
| 102 | 75 | #define HVC_SOFT_RESTART 1 |
|---|
| 103 | | -#define HVC_RESET_VECTORS 2 |
|---|
| 104 | | - |
|---|
| 105 | | -#define HVC_STUB_HCALL_NR 3 |
|---|
| 106 | 76 | |
|---|
| 107 | 77 | #endif /* __ASSEMBLY__ */ |
|---|
| 108 | 78 | |
|---|