mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 12:32:44 +00:00
On STM32WB and dual-core STM32H7 MCUs, the RNG peripheral is shared between the cores and its access is protected by a hardware semaphore. Locking was not performed in the current entropy driver, leading to a race condition when multiple cores concurrently used the RNG. This commit implements the necessary logic for locking the HSEM during entropy generation on multi-core STM32 MCUs. It also reconfigures the RNG in case the configuration was changed by the other core, as this can happen e.g on STM32WB MCUs. Signed-off-by: Thomas Altenbach <taltenbach@witekio.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
entropy_b91_trng.c | ||
entropy_bt_hci.c | ||
entropy_cc13xx_cc26xx.c | ||
entropy_esp32.c | ||
entropy_gecko_trng.c | ||
entropy_handlers.c | ||
entropy_litex.c | ||
entropy_mcux_rng.c | ||
entropy_mcux_rnga.c | ||
entropy_mcux_trng.c | ||
entropy_neorv32_trng.c | ||
entropy_nrf5.c | ||
entropy_rv32m1_trng.c | ||
entropy_sam.c | ||
entropy_stm32.c | ||
fake_entropy_native_posix.c | ||
Kconfig | ||
Kconfig.b91 | ||
Kconfig.bt_hci | ||
Kconfig.cc13xx_cc26xx | ||
Kconfig.esp32 | ||
Kconfig.gecko | ||
Kconfig.litex | ||
Kconfig.mcux | ||
Kconfig.native_posix | ||
Kconfig.neorv32 | ||
Kconfig.nrf5 | ||
Kconfig.rv32m1 | ||
Kconfig.sam | ||
Kconfig.stm32 |