diff options
| author | Marek Vasut <[email protected]> | 2016-05-25 02:14:56 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-06-02 21:21:42 -0400 |
| commit | 94b9e22e5036a2d8ad76956785e55754d4a980ad (patch) | |
| tree | 42b7a21058f8df3a05900ad543b33aeb3b74a48f | |
| parent | 03c6f1761ede305637ed54fb238b2059c597451e (diff) | |
spl: Allow settings malloc_f base address
Allow configuring the begining of the malloc_f area in SPL.
This patch uses the same CONFIG_MALLOC_F_ADDR established by
the sandbox.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
| -rw-r--r-- | common/spl/spl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index bdde7169188..780c081fb2c 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -192,6 +192,9 @@ int spl_init(void) debug("spl_init()\n"); #if defined(CONFIG_SYS_MALLOC_F_LEN) +#ifdef CONFIG_MALLOC_F_ADDR + gd->malloc_base = CONFIG_MALLOC_F_ADDR; +#endif gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN; gd->malloc_ptr = 0; #endif |
