forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/x86/xen/efi.c
....@@ -1,18 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (c) 2014 Oracle Co., Daniel Kiper
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, see <http://www.gnu.org/licenses/>.
164 */
175
186 #include <linux/bitops.h>
....@@ -41,9 +29,9 @@
4129 .fw_vendor = EFI_INVALID_TABLE_ADDR, /* Initialized later. */
4230 .fw_revision = 0, /* Initialized later. */
4331 .con_in_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
44
- .con_in = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
32
+ .con_in = NULL, /* Not used under Xen. */
4533 .con_out_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
46
- .con_out = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
34
+ .con_out = NULL, /* Not used under Xen. */
4735 .stderr_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
4836 .stderr = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */
4937 .runtime = (efi_runtime_services_t *)EFI_INVALID_TABLE_ADDR,
....@@ -69,21 +57,7 @@
6957 return NULL;
7058
7159 /* Here we know that Xen runs on EFI platform. */
72
-
73
- efi.get_time = xen_efi_get_time;
74
- efi.set_time = xen_efi_set_time;
75
- efi.get_wakeup_time = xen_efi_get_wakeup_time;
76
- efi.set_wakeup_time = xen_efi_set_wakeup_time;
77
- efi.get_variable = xen_efi_get_variable;
78
- efi.get_next_variable = xen_efi_get_next_variable;
79
- efi.set_variable = xen_efi_set_variable;
80
- efi.set_variable_nonblocking = xen_efi_set_variable;
81
- efi.query_variable_info = xen_efi_query_variable_info;
82
- efi.query_variable_info_nonblocking = xen_efi_query_variable_info;
83
- efi.update_capsule = xen_efi_update_capsule;
84
- efi.query_capsule_caps = xen_efi_query_capsule_caps;
85
- efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count;
86
- efi.reset_system = xen_efi_reset_system;
60
+ xen_efi_runtime_setup();
8761
8862 efi_systab_xen.tables = info->cfg.addr;
8963 efi_systab_xen.nr_tables = info->cfg.nent;