mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
UEFI: change the efi_ctx passing method
Save the pointer of efi_ctx in mi_drivers_addr field of multiboot structure and pass to hypervisor, not by saving in register RDX(the third default parameter in 64bit call function). With this method, we can be compatible with the original 32bit boot parameters passing method and no need to large the array size of boot_regs in hypervisor. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
This commit is contained in:
@@ -118,9 +118,6 @@ cpu_primary_start_64:
|
||||
/* save the MULTBOOT magic number & MBI */
|
||||
movl %edi, (boot_regs)
|
||||
movl %esi, (boot_regs+4)
|
||||
#ifdef CONFIG_EFI_STUB
|
||||
movl %edx, (boot_regs+8)
|
||||
#endif
|
||||
|
||||
primary_start_long_mode:
|
||||
|
||||
@@ -187,9 +184,6 @@ loop:
|
||||
boot_regs:
|
||||
.long 0x00000000
|
||||
.long 0x00000000
|
||||
#ifdef CONFIG_EFI_STUB
|
||||
.long 0x00000000
|
||||
#endif
|
||||
|
||||
/* GDT table */
|
||||
.align 4
|
||||
|
Reference in New Issue
Block a user