From 90587938e47c0bcd19fbc59d60141f8403627528 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 24 Jun 2025 10:00:38 -0500 Subject: [PATCH] bsps/aarch64/timer: Use correct definition The AArch64-specific timer selection mechanism was using the wrong macro for selecting the timer interrupt and would therefore partially ignore configurations that selected the use of virtual timers. The virtual timer will now be used correctly when selected. --- bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c b/bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c index 9ed1a8ccdd..ade3f1ed98 100644 --- a/bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c +++ b/bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c @@ -106,7 +106,7 @@ void arm_generic_timer_get_config( uint32_t *frequency, uint32_t *irq ) ); *frequency = val; -#ifdef ARM_GENERIC_TIMER_USE_VIRTUAL +#ifdef AARCH64_GENERIC_TIMER_USE_VIRTUAL *irq = BSP_TIMER_VIRT_PPI; #elif defined(AARCH64_GENERIC_TIMER_USE_PHYSICAL_SECURE) *irq = BSP_TIMER_PHYS_S_PPI;