[rtems commit] bsps/irq: Assert BSP_INTERRUPT_VECTOR_MIN == 0
Sebastian Huber
sebh at rtems.org
Thu Jun 24 10:29:28 UTC 2021
Module: rtems
Branch: master
Commit: f3acb8bf03b959659eb88f5ee1f9b5f33b4486db
Changeset: http://git.rtems.org/rtems/commit/?id=f3acb8bf03b959659eb88f5ee1f9b5f33b4486db
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Jun 19 11:31:12 2021 +0200
bsps/irq: Assert BSP_INTERRUPT_VECTOR_MIN == 0
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 e888a66..8dc6c6d 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
More information about the vc
mailing list