[PATCH v2 06/12] smpcapture02: Fix use of BSP_INTERRUPT_VECTOR_MAX

Sebastian Huber sebastian.huber at embedded-brains.de
Sat Jun 19 14:04:42 UTC 2021


This define represents the last valid interrupt vector number.

Update #3269.
---
 testsuites/smptests/smpcapture02/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/smptests/smpcapture02/init.c b/testsuites/smptests/smpcapture02/init.c
index 9cf1f0b006..329fd344e6 100644
--- a/testsuites/smptests/smpcapture02/init.c
+++ b/testsuites/smptests/smpcapture02/init.c
@@ -316,7 +316,7 @@ static void Init(rtems_task_argument arg)
   test(cpu_count);
 
   /* 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);
     if ( cih.found )
       break;
-- 
2.26.2



More information about the devel mailing list