hv:Move severl variable declaration for boot code

-- add header file ld_sym.h in include/arch/x86/boot/
-- move 'ld_bss_start/end' from cpu.h to ld_sym.h,
   avoid reverse dependency
-- move 'ld_text_end' from mmu.h to ld_sym.h
-- move 'ld_trampoline_load/start/end' to ld_sym.h

Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Mingqiang Chi
2019-01-24 11:22:02 +08:00
committed by Eddie Dong
parent c20d095a63
commit 6825043078
9 changed files with 22 additions and 10 deletions

View File

@@ -12,7 +12,6 @@ extern uint64_t get_hv_image_base(void);
/* external symbols that are helpful for relocation */
extern uint8_t _DYNAMIC[1];
extern uint8_t ld_trampoline_end;
extern uint8_t cpu_primary_start_32;
extern uint8_t cpu_primary_start_64;

View File

@@ -6,6 +6,7 @@
#include <types.h>
#include <reloc.h>
#include <ld_sym.h>
#ifdef CONFIG_RELOC
#define DT_NULL 0 /* end of .dynamic section */