Skip to content
Snippets Groups Projects
Commit 60e283e6 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

pkg tlsf: add tlsf initialization function

The init function was patched out, but is actually required to compile without warnings with -pedantic enabled.

This patch also updates ccn-lite and x86 support accordingly.
parent 446940f5
Branches
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ static char early_malloc_pool[0x1000] __attribute__((aligned(4))); ...@@ -51,7 +51,7 @@ static char early_malloc_pool[0x1000] __attribute__((aligned(4)));
void x86_startup(void) void x86_startup(void)
{ {
tlsf_add_pool(early_malloc_pool, sizeof early_malloc_pool); tlsf_create_with_pool(early_malloc_pool, sizeof early_malloc_pool);
x86_early_init_uart(); x86_early_init_uart();
x86_init_threading(); x86_init_threading();
......
...@@ -42,7 +42,7 @@ static msg_t _main_msg_queue[MAIN_QUEUE_SIZE]; ...@@ -42,7 +42,7 @@ static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];
int main(void) int main(void)
{ {
#ifndef BOARD_NATIVE #ifndef BOARD_NATIVE
tlsf_add_pool(_tlsf_heap, sizeof(_tlsf_heap)); tlsf_create_with_pool(_tlsf_heap, sizeof(_tlsf_heap));
#endif #endif
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE); msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment