zephyr/modules/mbedtls
Maochen Wang b7ed82c060 modules: mbedtls: 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 decrease the priority of mbedtls to default 40.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2024-06-26 13:07:02 -04:00
..
configs mbedtls: add support for the P256M driver 2024-06-12 01:53:58 -07:00
include mbedtls: add CONFIG_MBEDTLS_INIT 2023-07-06 11:45:08 +02:00
CMakeLists.txt mbedtls: add a kconfig to use the p256-m directly (without PSA interface) 2024-06-12 01:53:58 -07:00
create_psa_files.py mbedtls: add new PSA_CRYPTO_CLIENT config 2024-05-23 11:53:02 -04:00
debug.c modules: mbedtls: support stripping newline from debug log messages 2022-08-17 12:03:52 +02:00
Kconfig mbedtls: add Kconfig option for PSA_WANT_ALG_SHA_256 2024-05-08 22:14:19 -07:00
Kconfig.psa mbedtls: add new PSA_CRYPTO_CLIENT config 2024-05-23 11:53:02 -04:00
Kconfig.tls-generic net: add proper PSA_WANT kconfigs for TLS sockets and RSA key exchanges 2024-06-13 09:22:20 +02:00
shell.c modules: migrate includes to <zephyr/...> 2022-05-06 19:57:47 +02:00
zephyr_init.c modules: mbedtls: Fix init hang issue 2024-06-26 13:07:02 -04:00