zephyr/soc/arm/st_stm32/common
Thomas Altenbach cc51031445 drivers/entropy: stm32: fix inter-core race condition
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>
2022-05-13 10:28:53 -05:00
..
CMakeLists.txt
Kconfig.defconfig.series
Kconfig.soc kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
ccm.ld linker: link into derived section names 2021-12-09 16:23:03 +01:00
pinctrl_soc.h soc: migrate includes to <zephyr/...> 2022-05-06 19:57:59 +02:00
soc_config.c soc: migrate includes to <zephyr/...> 2022-05-06 19:57:59 +02:00
st_stm32_dt.h soc: migrate includes to <zephyr/...> 2022-05-06 19:57:59 +02:00
stm32_backup_sram.c soc: migrate includes to <zephyr/...> 2022-05-06 19:57:59 +02:00
stm32_backup_sram.ld
stm32_hsem.h drivers/entropy: stm32: fix inter-core race condition 2022-05-13 10:28:53 -05:00
stm32cube_hal.c soc: migrate includes to <zephyr/...> 2022-05-06 19:57:59 +02:00