forked from Imagelibrary/rtems
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.
This commit is contained in:
committed by
Kinsey Moore
parent
726a659eb0
commit
90587938e4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user