|
37 | 37 | #include "stdlib.h"
|
38 | 38 | #include "boot.h"
|
39 | 39 | #include "acrn_common.h"
|
40 |
| -#include "uefi.h" |
| 40 | +#include "firmware_uefi.h" |
41 | 41 | #include "MpService.h"
|
42 | 42 |
|
43 | 43 | EFI_SYSTEM_TABLE *sys_table;
|
@@ -88,7 +88,7 @@ enable_disable_all_ap(BOOLEAN enable)
|
88 | 88 | }
|
89 | 89 |
|
90 | 90 | static inline void hv_jump(EFI_PHYSICAL_ADDRESS hv_start,
|
91 |
| - struct multiboot_info *mbi, struct efi_context *efi_ctx) |
| 91 | + struct multiboot_info *mbi, struct uefi_context *efi_ctx) |
92 | 92 | {
|
93 | 93 | hv_func hf;
|
94 | 94 |
|
@@ -243,7 +243,7 @@ switch_to_guest_mode(EFI_HANDLE image, EFI_PHYSICAL_ADDRESS hv_hpa)
|
243 | 243 | EFI_STATUS err;
|
244 | 244 | struct multiboot_mmap *mmap;
|
245 | 245 | struct multiboot_info *mbi;
|
246 |
| - struct efi_context *efi_ctx; |
| 246 | + struct uefi_context *efi_ctx; |
247 | 247 | struct acpi_table_rsdp *rsdp = NULL;
|
248 | 248 | int32_t i;
|
249 | 249 | EFI_CONFIGURATION_TABLE *config_table;
|
@@ -336,6 +336,7 @@ static inline EFI_STATUS isspace(CHAR8 ch)
|
336 | 336 | return ((uint8_t)ch <= ' ');
|
337 | 337 | }
|
338 | 338 |
|
| 339 | +#define DEFAULT_UEFI_OS_LOADER_NAME "\\EFI\\org.clearlinux\\bootloaderx64.efi" |
339 | 340 | /**
|
340 | 341 | * efi_main - The entry point for the OS loader image.
|
341 | 342 | * @image: firmware-allocated handle that identifies the image
|
@@ -401,7 +402,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table)
|
401 | 402 | * bootloader name to be used. Fall back to the default bootloader
|
402 | 403 | * as specified in config.h
|
403 | 404 | */
|
404 |
| - bootloader_name = ch8_2_ch16(CONFIG_UEFI_OS_LOADER_NAME); |
| 405 | + bootloader_name = ch8_2_ch16(DEFAULT_UEFI_OS_LOADER_NAME); |
405 | 406 | }
|
406 | 407 |
|
407 | 408 | section = ".hv";
|
|
0 commit comments