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:
Minggui Cao
2020-04-28 15:31:21 +08:00
committed by wenlingz
parent 5936bf431c
commit 691a0e2e56
2 changed files with 10 additions and 4 deletions

View File

@@ -71,6 +71,14 @@ SECTIONS
} > ram
.boot_stack :
{
/* 4K for the boot stack */
. += 4096;
stack_for_boot = .;
. = ALIGN(4);
} > ram
.bss_noinit (NOLOAD):
{
. = ALIGN(4) ;