Skip to content

Commit

Permalink
fix(mbedtls): IRAM optimization analyzed on mbedtls/test_apps
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshkale123 committed Aug 10, 2023
1 parent 70e223a commit b4f9dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mbedtls/port/esp_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#ifndef CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC

IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size)
void *esp_mbedtls_mem_calloc(size_t n, size_t size)
{
#ifdef CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC
return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
Expand All @@ -33,7 +33,7 @@ IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size)
#endif
}

IRAM_ATTR void esp_mbedtls_mem_free(void *ptr)
void esp_mbedtls_mem_free(void *ptr)
{
return heap_caps_free(ptr);
}
Expand Down

0 comments on commit b4f9dd1

Please sign in to comment.