mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV: modularizatoin: refine efi_info struct usage in acrn boot info
This patch has below changes: 1. rename mi_efi_info to uefi_info in struct acrn_boot_info; 2. remove redundant "efi_" prefix for efi_info struct members; 3. The efi_info structure in acrn_boot_info struct is defined as same as Linux kernel so the native efi info from boot loader is passed to SOS zeropage with memcpy() api directly. Now replace memcpy() with detailed struct member assignment; 4. add boot_from_uefi() api; Tracked-On: #5661 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
#define EFI_H
|
||||
|
||||
struct efi_info {
|
||||
uint32_t efi_loader_signature; /* 0x1c0 */
|
||||
uint32_t efi_systab; /* 0x1c4 */
|
||||
uint32_t efi_memdesc_size; /* 0x1c8 */
|
||||
uint32_t efi_memdesc_version; /* 0x1cc */
|
||||
uint32_t efi_memmap; /* 0x1d0 */
|
||||
uint32_t efi_memmap_size; /* 0x1d4 */
|
||||
uint32_t efi_systab_hi; /* 0x1d8 */
|
||||
uint32_t efi_memmap_hi; /* 0x1dc */
|
||||
uint32_t loader_signature; /* 0x1c0 */
|
||||
uint32_t systab; /* 0x1c4 */
|
||||
uint32_t memdesc_size; /* 0x1c8 */
|
||||
uint32_t memdesc_version; /* 0x1cc */
|
||||
uint32_t memmap; /* 0x1d0 */
|
||||
uint32_t memmap_size; /* 0x1d4 */
|
||||
uint32_t systab_hi; /* 0x1d8 */
|
||||
uint32_t memmap_hi; /* 0x1dc */
|
||||
} __packed;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user