Skip to content
Permalink
Browse files

arch: common: gen_isr_tables table size check

Added simple and fairly conservative sanity check for interrupt table
size

Signed-off-by: Augusto Hack <me@hak.cx>
  • Loading branch information...
hackaugusto authored and andrewboie committed Jun 14, 2019
1 parent 49df0b1 commit 0296938c9fd6222e8c2cf840c70c9030dbaba048
Showing with 3 additions and 0 deletions.
  1. +3 −0 arch/common/gen_isr_tables.py
@@ -227,6 +227,9 @@ def main():
nvec = intlist["num_vectors"]
offset = intlist["offset"]

if nvec > pow(2, 15):
raise ValueError('nvec is too large, check endianness.')

spurious_handler = "&z_irq_spurious"
sw_irq_handler = "ISR_WRAPPER"

0 comments on commit 0296938

Please sign in to comment.
You can’t perform that action at this time.