summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/start.S
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-20 06:40:19 -0700
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:11 -0700
commit57b10f59b7c6ff0d3827e39acb6c3e348adbc14a (patch)
tree699e8a5d501d168cc5f3e03039dcbddf438722bd /arch/x86/cpu/start.S
parenta52a068eb189c6268017a25d48f50f26b2a08a0b (diff)
downloadu-boot-imx-57b10f59b7c6ff0d3827e39acb6c3e348adbc14a.zip
u-boot-imx-57b10f59b7c6ff0d3827e39acb6c3e348adbc14a.tar.gz
u-boot-imx-57b10f59b7c6ff0d3827e39acb6c3e348adbc14a.tar.bz2
x86: fsp: Enlarge the size of malloc() pool before relocation
After fsp_init() returns, the stack has already been switched to a place within system memory as defined by CONFIG_FSP_TEMP_RAM_ADDR. Enlarge the size of malloc() pool before relocation since we have plenty of memory now. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/start.S')
-rw-r--r--arch/x86/cpu/start.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
index e94ddc4..e2b5ef4 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -141,6 +141,14 @@ car_init_ret:
jz skip_hob
movl %esi, GD_HOB_LIST(%edx)
+ /*
+ * After fsp_init() returns, the stack has already been switched to a
+ * place within system memory as defined by CONFIG_FSP_TEMP_RAM_ADDR.
+ * Enlarge the size of malloc() pool before relocation since we have
+ * plenty of memory now.
+ */
+ subl $CONFIG_FSP_SYS_MALLOC_F_LEN, %esp
+ movl %esp, GD_MALLOC_BASE(%edx)
skip_hob:
#else
/* Store table pointer */