mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-20 00:08:07 +00:00
HV: add a specific stack space used in CPU booting
The original stack used in CPU booting is: ld_bss_end + 4KB; which could be out of the RAM size limit defined in link_ram file. So add a specific stack space in link_ram file, and used in CPU booting. Tracked-On: #4738 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -237,10 +237,8 @@ cpu_primary_start_64:
|
||||
|
||||
primary_start_long_mode:
|
||||
|
||||
/* Initialize temporary stack pointer */
|
||||
lea ld_bss_end(%rip), %rsp
|
||||
/*0x1000 = PAGE_SIZE*/
|
||||
add $0x1000,%rsp
|
||||
/* Initialize temporary stack pointer, size = 0x1000 */
|
||||
lea stack_for_boot(%rip), %rsp
|
||||
/* 16 = CPU_STACK_ALIGN */
|
||||
and $(~(16 - 1)),%rsp
|
||||
|
||||
|
Reference in New Issue
Block a user