After building all BSPs with this patch, this BSP-specific define can be
removed to simplify the implementation.

Update #3269.
---
 bsps/include/bsp/irq-generic.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h
index e888a66cea..8dc6c6d576 100644
--- a/bsps/include/bsp/irq-generic.h
+++ b/bsps/include/bsp/irq-generic.h
@@ -62,6 +62,10 @@ extern "C" {
   #error "invalid BSP_INTERRUPT_VECTOR_MIN or BSP_INTERRUPT_VECTOR_MAX"
 #endif
 
+#if BSP_INTERRUPT_VECTOR_MIN != 0
+  #error "BSP_INTERRUPT_VECTOR_MIN shall be zero"
+#endif
+
 #if defined(BSP_INTERRUPT_USE_INDEX_TABLE) && 
!defined(BSP_INTERRUPT_HANDLER_TABLE_SIZE)
   #error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define 
BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
 #endif
-- 
2.26.2

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to