mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
dm: arm: spl: Allow simple malloc() in SPL
For SPL it is sometimes useful to have a simple malloc() just to permit driver model to work, in the cases where the full malloc() is not made available by the board config. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c9356be307
commit
ba19599b44
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ clr_gd:
|
|||
strlo r0, [r1] /* clear 32-bit GD word */
|
||||
addlo r1, r1, #4 /* move to next */
|
||||
blo clr_gd
|
||||
#if defined(CONFIG_SYS_MALLOC_F_LEN) && !defined(CONFIG_SPL_BUILD)
|
||||
#if defined(CONFIG_SYS_MALLOC_F_LEN)
|
||||
sub sp, sp, #CONFIG_SYS_MALLOC_F_LEN
|
||||
str sp, [r9, #GD_MALLOC_BASE]
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue