Skip to content

Commit 1cd06ba

Browse files
yechun1jren1
authored andcommitted
efi: clean RuntimeServices code
efi runtime service table unused Signed-off-by: Chris Ye <yechunliangcn@163.com>
1 parent e35874c commit 1cd06ba

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

hypervisor/bsp/uefi/efi/boot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
EFI_SYSTEM_TABLE *sys_table;
4141
EFI_BOOT_SERVICES *boot;
42-
EFI_RUNTIME_SERVICES *runtime;
4342
extern const uint64_t guest_entry;
4443

4544
static inline void hv_jump(EFI_PHYSICAL_ADDRESS hv_start,
@@ -339,7 +338,6 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table)
339338

340339
sys_table = _table;
341340
boot = sys_table->BootServices;
342-
runtime = sys_table->RuntimeServices;
343341

344342
if (CheckCrc(sys_table->Hdr.HeaderSize, &sys_table->Hdr) != TRUE)
345343
return EFI_LOAD_ERROR;

hypervisor/bsp/uefi/efi/efilinux.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848

4949
extern EFI_SYSTEM_TABLE *sys_table;
5050
extern EFI_BOOT_SERVICES *boot;
51-
extern EFI_RUNTIME_SERVICES *runtime;
5251

5352
/**
5453
* allocate_pages - Allocate memory pages from the system

0 commit comments

Comments
 (0)