zephyr/lib/libc/newlib
Maochen Wang e309f781ff libc: common: Fix init hang issue
In device init phase, it will call _mbedtls_init before malloc_prepare
as mbedtls has higher priority defined in SYS_INIT..
_mbedtls_init() will call psa_crypto_init() and malloc buffer,
but z_malloc_heap is not initialized, which will cause device hang.
Should call malloc_prepare() before _mbedtls_init to fix this issue,
so add new Kconfig to increase the priority of libc to deafult 30.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-06-26 13:07:02 -04:00
..
include libc/newlib: Wrap <string.h> to define strnlen and strtok_r when needed 2024-02-02 19:54:33 +01:00
CMakeLists.txt buildsystem: Enable LTO also for the application 2024-03-02 15:39:36 +01:00
Kconfig
libc-hooks.c libc: common: Fix init hang issue 2024-06-26 13:07:02 -04:00