nuttx/arch/arm64
Marco Casaroli 7c6307bebf arch/arm64/qemu: Use the PL031 RTC of the virt machine.
The QEMU virt machine has a PL031 RTC at 0x09010000 (SPI 2), which QEMU
sets from the host clock.  qemu-armv8a did not register it, so the
system time started at CONFIG_START_YEAR, and files on a host share
(v9fs, hostfs) had times years in the future.

With CONFIG_RTC_PL031, up_rtc_initialize() now registers the PL031 as
the RTC, so the system time starts at the host's time.

The new option QEMU_RTC_PL031_SYNC makes the boot wait (up to a second)
for the RTC second to change.  The PL031 counts whole seconds, so
without the wait the time starts up to a second behind the host.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-10-09 06:12:07 -03:00
..
include arch/arm64: Save d8-d15 in setjmp() and make jmp_buf hold them. 2026-10-09 06:11:29 -03:00
src arch/arm64/qemu: Use the PL031 RTC of the virt machine. 2026-10-09 06:12:07 -03:00
CMakeLists.txt arch/arm64: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
Kconfig arch/arm64: AES using the Armv8 Cryptography Extension. 2026-09-21 18:43:36 +08:00