hv: modularization: remove global variable efiloader_sig.

Simplify multiboot API by removing the global variable efiloader_sig.
Replaced by constant at the use site.

Tracked-On: #5661
Signed-off-by: Yi Liang <yi.liang@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Liang Yi
2021-01-21 11:55:48 +08:00
committed by wenlingz
parent 67926cee81
commit e8a76868c9
6 changed files with 13 additions and 19 deletions

View File

@@ -314,9 +314,3 @@ cpu_primary32_pdt_addr:
.quad address + 0x83
address = address + 0x200000
.endr
#ifdef CONFIG_MULTIBOOT2
.global efiloader_sig
efiloader_sig:
.asciz "EL64"
#endif

View File

@@ -16,10 +16,10 @@
#include <ld_sym.h>
#include <multiboot.h>
/* The following are assembly varaibles defined in arch/x86/boot/cpu_primary.S */
/* boot_regs store the multiboot info magic and address */
/* boot_regs store the multiboot info magic and address, defined in
arch/x86/boot/cpu_primary.S.
*/
extern uint32_t boot_regs[2];
extern char *efiloader_sig;
/* Push sp magic to top of stack for call trace */
#define SWITCH_TO(rsp, to) \
@@ -91,7 +91,7 @@ void init_primary_pcpu(void)
/* Clear BSS */
(void)memset(&ld_bss_start, 0U, (size_t)(&ld_bss_end - &ld_bss_start));
init_acrn_multiboot_info(boot_regs[0], boot_regs[1], efiloader_sig);
init_acrn_multiboot_info(boot_regs[0], boot_regs[1]);
init_debug_pre();