1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-27 21:16:50 +03:00

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
This commit is contained in:
david gauchard 2020-12-24 19:56:21 +01:00 committed by GitHub
parent 5356c87b5b
commit 5c29517d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1 +1 @@
Subproject commit 7d498d9d39998c9eafb575609a0803d78893c8c3
Subproject commit 7421258237b7c8f61629226961af498a0a6e0096

View File

@ -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

View File

@ -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