smpcapture02: Fix use of BSP_INTERRUPT_VECTOR_MAX

This define represents the last valid interrupt vector number.

Update #3269.
This commit is contained in:
Sebastian Huber
2021-06-19 12:58:21 +02:00
parent af73b7b64b
commit 900a84c5d1

View File

@@ -316,7 +316,7 @@ static void Init(rtems_task_argument arg)
test(cpu_count); test(cpu_count);
/* Try to find the clock interrupt handler */ /* Try to find the clock interrupt handler */
for ( vec = 0; vec < BSP_INTERRUPT_VECTOR_MAX; vec++ ) { for ( vec = 0; vec <= BSP_INTERRUPT_VECTOR_MAX; vec++ ) {
rtems_interrupt_handler_iterate(vec, locate_clock_interrupt_handler, &cih); rtems_interrupt_handler_iterate(vec, locate_clock_interrupt_handler, &cih);
if ( cih.found ) if ( cih.found )
break; break;