diff options
author | Simon Glass <sjg@chromium.org> | 2015-02-27 22:06:36 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-23 09:05:53 -0600 |
commit | fb5cf7f16be725aec7ab0016268b3b4e26460bee (patch) | |
tree | 755959683c0f163b7911e57d059fe467f585ab9a /include/malloc.h | |
parent | 0879361fd3bc33eb52bcfb2574a78f1e52a36429 (diff) | |
download | u-boot-fb5cf7f16be725aec7ab0016268b3b4e26460bee.tar.gz u-boot-fb5cf7f16be725aec7ab0016268b3b4e26460bee.tar.bz2 u-boot-fb5cf7f16be725aec7ab0016268b3b4e26460bee.zip |
Move initf_malloc() to a common place
To allow this function to be used from SPL, move it to the malloc()
code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/malloc.h')
-rw-r--r-- | include/malloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h index 5df634873f..f4da9e6ddd 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -906,6 +906,9 @@ void *realloc_simple(void *ptr, size_t size); #endif +/* Set up pre-relocation malloc() ready for use */ +int initf_malloc(void); + /* Public routines */ /* Simple versions which can be used when space is tight */ |