mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-04-05 03:46:17 +00:00
After below commit in https://github.com/zephyrproject-rtos/zephyr commit d0126a037d23484feebba00d2c0eac27e6393fef Author: Zide Chen <zide.chen@intel.com> Date: Wed Feb 5 08:32:00 2020 -0800 boards/x86/acrn: build it in x86_64 mode and switch to X2APIC The zephyr image for acrn would be built in x86_64 mode by default, then the load/entry address for pre-launched Zephyr image should be changed from 0x100000 to 0x8000 accordingly per below definition in zephyr .ld file: zephyrproject_src/zephyr/include/arch/x86/intel64/linker.ld SECTIONS { /* * The "locore" must be in the 64K of RAM, so that 16-bit code (with * segment registers == 0x0000) and 32/64-bit code agree on addresses. * ... there is no 16-bit code yet, but there will be when we add SMP. */ .locore 0x8000 : ALIGN(16) { _locore_start = .; The commit in zephyrproject is merged before zephyr v2.2 release, so from v2.2 on, HV need this fix to boot Zephyr as pre-launched VM. Tracked-On: #5259 Signed-off-by: Victor Sun <victor.sun@intel.com>