diff options
author | Tom Rini <trini@konsulko.com> | 2015-04-23 13:53:09 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-23 14:56:10 -0400 |
commit | 5f757cdcc6efbefec09b8f964a234f84ff9fa7f6 (patch) | |
tree | e8058651bd0319757d33fb7a949b9491211de7c7 /common/dlmalloc.c | |
parent | bba97cd2c96ae0c21ad916a9c4eb363fe569a2f9 (diff) | |
parent | f3d46bd658ef4df575ec26c29e472ac858723159 (diff) | |
download | u-boot-imx-5f757cdcc6efbefec09b8f964a234f84ff9fa7f6.zip u-boot-imx-5f757cdcc6efbefec09b8f964a234f84ff9fa7f6.tar.gz u-boot-imx-5f757cdcc6efbefec09b8f964a234f84ff9fa7f6.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-dm
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r-- | common/dlmalloc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c index b2ce063..b5bb051 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -3261,6 +3261,17 @@ int mALLOPt(param_number, value) int param_number; int value; } } +int initf_malloc(void) +{ +#ifdef CONFIG_SYS_MALLOC_F_LEN + assert(gd->malloc_base); /* Set up by crt0.S */ + gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN; + gd->malloc_ptr = 0; +#endif + + return 0; +} + /* History: |