zephyr/soc
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
..
arc ARC: boards: allow MWDT toolchain for nsim_hs6x and nsim_hs6x_smp 2022-05-10 14:12:25 -04:00
arm drivers/entropy: stm32: fix inter-core race condition 2022-05-13 10:28:53 -05:00
arm64 boards: imx8mm: add partial pin control support 2022-05-12 16:57:17 -05:00
mips asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
nios2 linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
posix linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
riscv soc: esp32c3: linker changes to enable newlibc and cpp 2022-05-11 10:47:27 +02:00
sparc linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
x86 linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
xtensa soc: esp32s2: add _gettimeofday_r workaround 2022-05-11 10:47:27 +02:00
Kconfig kconfig: soc and shield cleanup 2021-06-11 16:13:22 +02:00