mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 09:30:10 +00:00
dm: x86: Support pre-reloc malloc()
Add support for this by reserving a block of memory below global_data. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fbd7282426
commit
5dbcaa2128
1 changed files with 7 additions and 0 deletions
|
@ -97,6 +97,13 @@ car_init_ret:
|
||||||
/* Reserve space for global descriptor table */
|
/* Reserve space for global descriptor table */
|
||||||
subl $X86_GDT_SIZE, %esp
|
subl $X86_GDT_SIZE, %esp
|
||||||
|
|
||||||
|
#if defined(CONFIG_SYS_MALLOC_F_LEN)
|
||||||
|
subl $CONFIG_SYS_MALLOC_F_LEN, %esp
|
||||||
|
movl %eax, %edx
|
||||||
|
addl $GD_MALLOC_BASE, %edx
|
||||||
|
movl %esp, (%edx)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Align temporary global descriptor table to 16-byte boundary */
|
/* Align temporary global descriptor table to 16-byte boundary */
|
||||||
andl $0xfffffff0, %esp
|
andl $0xfffffff0, %esp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue