summaryrefslogtreecommitdiffstats
path: root/common/memory.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-06-11 16:12:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-16 17:10:51 +0200
commit78adca381e9564a2437aefba7b3c4ac398328fea (patch)
treef9ac123f95540b8c06a06428757faa2f68c2be57 /common/memory.c
parent6c1e7688df94a9d4dfebeb62266f7fc91c209d8a (diff)
downloadbarebox-78adca381e9564a2437aefba7b3c4ac398328fea.tar.gz
barebox-78adca381e9564a2437aefba7b3c4ac398328fea.tar.xz
tlsf: Update to v3.1
This updates the tlsf implementation to v3.1. This is taken from commit deff9ab509341f264addbd3c8ada533678591905 in https://github.com/mattconte/tlsf.git. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/memory.c')
-rw-r--r--common/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/memory.c b/common/memory.c
index 114958fbcf..57c7d6b220 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -43,7 +43,7 @@ unsigned long mem_malloc_end(void)
#ifdef CONFIG_MALLOC_TLSF
#include <tlsf.h>
-tlsf_pool tlsf_mem_pool;
+tlsf_t tlsf_mem_pool;
#endif
int mem_malloc_initialized;
@@ -59,7 +59,7 @@ void mem_malloc_init(void *start, void *end)
malloc_end = (unsigned long)end;
malloc_brk = malloc_start;
#ifdef CONFIG_MALLOC_TLSF
- tlsf_mem_pool = tlsf_create(start, end - start + 1);
+ tlsf_mem_pool = tlsf_create_with_pool(start, end - start + 1);
#endif
mem_malloc_initialized = 1;
}