mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #3686 from embhorn/zd11571
Fix Free/SafeRTOS with XMALLOC_USER
This commit is contained in:
@ -721,10 +721,10 @@ extern void uITRON4_free(void *p) ;
|
||||
!defined(WOLFSSL_STATIC_MEMORY)
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#endif
|
||||
/* FreeRTOS pvPortRealloc() implementation can be found here:
|
||||
https://github.com/wolfSSL/wolfssl-freertos/pull/3/files */
|
||||
#if !defined(USE_FAST_MATH) || defined(HAVE_ED25519) || defined(HAVE_ED448)
|
||||
#if !defined(USE_FAST_MATH) || defined(HAVE_ED25519) || \
|
||||
defined(HAVE_ED448)
|
||||
#if defined(WOLFSSL_ESPIDF)
|
||||
/*In IDF, realloc(p, n) is equivalent to
|
||||
heap_caps_realloc(p, s, MALLOC_CAP_8BIT) */
|
||||
@ -733,6 +733,8 @@ extern void uITRON4_free(void *p) ;
|
||||
#define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NO_WRITEV
|
||||
#define NO_WRITEV
|
||||
#endif
|
||||
@ -910,12 +912,14 @@ extern void uITRON4_free(void *p) ;
|
||||
!defined(WOLFSSL_STATIC_MEMORY)
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#endif
|
||||
|
||||
/* FreeRTOS pvPortRealloc() implementation can be found here:
|
||||
https://github.com/wolfSSL/wolfssl-freertos/pull/3/files */
|
||||
#if !defined(USE_FAST_MATH) || defined(HAVE_ED25519) || defined(HAVE_ED448)
|
||||
#if !defined(USE_FAST_MATH) || defined(HAVE_ED25519) || \
|
||||
defined(HAVE_ED448)
|
||||
#define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_LOW_MEMORY
|
||||
|
Reference in New Issue
Block a user