mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: Prepare trampline.S trampoline code relocation
in real mode part, add extra pointers for page tables and long jump buffer so it's possible for HV code to patch the relocation offset in long mode part, use absolute addressing when referring HV symbols, and use relative addressing for symbols within trampoline code Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
This commit is contained in:
@@ -158,10 +158,17 @@ int cpu_find_logical_id(uint32_t lapic_id);
|
||||
/**********************************/
|
||||
extern const uint8_t _ld_trampline_load[];
|
||||
extern uint8_t _ld_trampline_start[];
|
||||
extern uint8_t _ld_trampline_end[];
|
||||
extern const uint64_t _ld_trampline_size;
|
||||
extern uint8_t _ld_bss_start[];
|
||||
extern uint8_t _ld_bss_end[];
|
||||
|
||||
extern uint8_t CPU_Boot_Page_Tables_Start[];
|
||||
extern uint8_t CPU_Boot_Page_Tables_ptr[];
|
||||
extern uint8_t trampline_pdpt_addr[];
|
||||
extern uint8_t trampline_gdt_ptr[];
|
||||
extern uint8_t trampline_start64_fixup[];
|
||||
|
||||
extern int ibrs_type;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user