diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-19 11:31:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-24 11:35:49 +0200 |
commit | f3acb8bf03b959659eb88f5ee1f9b5f33b4486db (patch) | |
tree | 069d437e2b9db55ee8de3e38f1f9f19e811c22b9 /bsps/include/bsp/irq-generic.h | |
parent | bsp/generic_or1k: Remove incomplete IRQ support (diff) | |
download | rtems-f3acb8bf03b959659eb88f5ee1f9b5f33b4486db.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | bsps/include/bsp/irq-generic.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |