nuttx/arch/xtensa
yushuailong c11029848e arch/xtensa/espressif: Fix non-atomic clock read in esp_rtc_rdalarm.
esp_rtc_rdalarm() computed tv_sec and tv_nsec from two separate
evaluations of esp_hr_timer_time_us() + offset + deadline. The
high-resolution timer advances between the two calls, so a read that
straddles a second boundary yields an inconsistent timespec.

Compute the microsecond value once into a local variable and derive
both fields from that single snapshot.

Signed-off-by: yushuailong <yyyusl@qq.com>
2026-06-11 02:59:10 +08:00
..
include xtensa/espressif: Update common-source integration for Xtensa devices 2026-03-29 00:33:11 +08:00
src arch/xtensa/espressif: Fix non-atomic clock read in esp_rtc_rdalarm. 2026-06-11 02:59:10 +08:00
CMakeLists.txt cmake:implement CMake build of xtensa arch 2024-11-02 18:08:38 +08:00
Kconfig xtensa/espressif: Update common-source integration for Xtensa devices 2026-03-29 00:33:11 +08:00