Skip to content

Commit 5c29517

Browse files
authored
lwip2: use pvPortXalloc/vPortFree and "-free -fipa-pta" (#7793)
lwip2: use pvPortXalloc/vPortFree instead of malloc/free and add gcc's '-free -fipa-pta' options
1 parent 5356c87 commit 5c29517

9 files changed

+12
-2
lines changed

tools/sdk/lib/liblwip2-1460-feat.a

-1.66 KB
Binary file not shown.

tools/sdk/lib/liblwip2-1460.a

-1.37 KB
Binary file not shown.

tools/sdk/lib/liblwip2-536-feat.a

-1.66 KB
Binary file not shown.

tools/sdk/lib/liblwip2-536.a

-1.36 KB
Binary file not shown.

tools/sdk/lib/liblwip6-1460-feat.a

-1.5 KB
Binary file not shown.

tools/sdk/lib/liblwip6-536-feat.a

-1.5 KB
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// generated by makefiles/make-lwip2-hash
22
#ifndef LWIP_HASH_H
33
#define LWIP_HASH_H
4-
#define LWIP_HASH_STR "STABLE-2_1_2_RELEASE/glue:1.2-46-g7d498d9"
4+
#define LWIP_HASH_STR "STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258"
55
#endif // LWIP_HASH_H

tools/sdk/lwip2/include/lwipopts.h

+10
Original file line numberDiff line numberDiff line change
@@ -3676,6 +3676,16 @@ void tcp_kill_timewait (void);
36763676
#define MEMP_NUM_TCP_PCB_TIME_WAIT 5
36773677
#endif
36783678

3679+
/*
3680+
--------------------------------------------------
3681+
----------------- Alloc functions ----------------
3682+
--------------------------------------------------
3683+
*/
3684+
3685+
#define mem_clib_free(p) vPortFree(p, NULL, -1)
3686+
#define mem_clib_malloc(s) pvPortMalloc(s, NULL, -1)
3687+
#define mem_clib_calloc(n,s) pvPortZalloc(n*s, NULL, -1)
3688+
36793689
#ifdef __cplusplus
36803690
} // extern "C"
36813691
#endif

0 commit comments

Comments
 (0)