mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
dm: switch to 32bit kernel entry
For the platform without virtual bootloader, dm will load uos kernel directly, and hv will set rip according to uos kernel entry. In current code, uos bsp starts from 64bit mode, so 64bit kernel entry is used. This patch series sets uos bsp to protected mode on such platform, so 32bit kernel entry is choosed. Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
This commit is contained in:
parent
bed6f0b99e
commit
37db817c03
@ -314,7 +314,7 @@ acrn_sw_load_bzimage(struct vmctx *ctx)
|
||||
if (setup_size <= 0)
|
||||
return -1;
|
||||
*kernel_entry_addr = (uint64_t)
|
||||
(KERNEL_LOAD_OFF(ctx) + setup_size + 0x200);
|
||||
(KERNEL_LOAD_OFF(ctx) + setup_size);
|
||||
ret = acrn_prepare_zeropage(ctx, setup_size);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user