Skip to content
Commit f3da086a authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Chris Friedt
Browse files

arch: common: sw_isr: make sure that the table index is within range



Assert that the `local_irq` of each levels should only ranges
from `0` to `CONFIG_MAX_IRQ_PER_AGGREGATOR`, so that it doesn't
overflow the other aggregators.

Also, assert that the output of `z_get_sw_isr_table_idx` shouldn't
overflow the ISR table.

Update the `sw_isr_table` tests to test the range of
`CONFIG_MAX_IRQ_PER_AGGREGATOR` instead of the entire range of
level bits.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent a28da922
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment