Skip to content

Commit

Permalink
lwip2: use pvPortXalloc/vPortFree and "-free -fipa-pta" (#7793)
Browse files Browse the repository at this point in the history
lwip2: use pvPortXalloc/vPortFree instead of malloc/free and add gcc's '-free -fipa-pta' options
  • Loading branch information
d-a-v committed Dec 24, 2020
1 parent 5356c87 commit 5c29517
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 2 deletions.
Binary file modified tools/sdk/lib/liblwip2-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-1460.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip2-536.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-1460-feat.a
Binary file not shown.
Binary file modified tools/sdk/lib/liblwip6-536-feat.a
Binary file not shown.
2 changes: 1 addition & 1 deletion tools/sdk/lwip2/builder
2 changes: 1 addition & 1 deletion tools/sdk/lwip2/include/lwip-git-hash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// generated by makefiles/make-lwip2-hash
#ifndef LWIP_HASH_H
#define LWIP_HASH_H
#define LWIP_HASH_STR "STABLE-2_1_2_RELEASE/glue:1.2-46-g7d498d9"
#define LWIP_HASH_STR "STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258"
#endif // LWIP_HASH_H
10 changes: 10 additions & 0 deletions tools/sdk/lwip2/include/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -3676,6 +3676,16 @@ void tcp_kill_timewait (void);
#define MEMP_NUM_TCP_PCB_TIME_WAIT 5
#endif

/*
--------------------------------------------------
----------------- Alloc functions ----------------
--------------------------------------------------
*/

#define mem_clib_free(p) vPortFree(p, NULL, -1)
#define mem_clib_malloc(s) pvPortMalloc(s, NULL, -1)
#define mem_clib_calloc(n,s) pvPortZalloc(n*s, NULL, -1)

#ifdef __cplusplus
} // extern "C"
#endif
Expand Down

0 comments on commit 5c29517

Please sign in to comment.