mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-25 02:41:45 +00:00
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:
@@ -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
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user