zephyr/arch/common
Yong Cong Sin f3da086ac3 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: Yong Cong Sin <ycsin@meta.com>
2023-12-08 08:40:41 -05:00
..
include arch: common: irq: relocate internal functions into a private header 2023-11-09 11:20:42 +01:00
CMakeLists.txt arch: common: guard the compilation of sw_isr_common with CMakeLists.txt 2023-11-09 11:20:42 +01:00
dynamic_isr.c arch: common: guard the compilation of sw_isr_common with CMakeLists.txt 2023-11-09 11:20:42 +01:00
fill_with_zeros.ld arch: common: Force linker to fill empty spaces in rom_start with 0x00 2023-09-13 11:46:56 +02:00
isr_tables.c arch: Add support for static shared interrupts 2023-09-14 08:35:12 +02:00
Kconfig arch: common: dedicated SEMIHOST symbol 2022-04-21 13:04:52 +02:00
multilevel_irq.c arch: common: sw_isr: make sure that the table index is within range 2023-12-08 08:40:41 -05:00
nocache.ld cmake: Add support to add symbols to nocache section 2022-08-29 11:19:48 +02:00
ramfunc.ld cmake: Add support to add symbols to ramfunc section 2022-04-18 17:24:12 -07:00
rom_start_address.ld arch/common: Fix moving location counter backwards when using LLD 2023-07-14 12:08:02 +02:00
rom_start_offset.ld arch/common: Fix moving location counter backwards when using LLD 2023-07-14 12:08:02 +02:00
semihost.c arch: common: semihost: add semihosting operations 2022-04-21 13:04:52 +02:00
shared_irq.c arch: common: irq: relocate internal functions into a private header 2023-11-09 11:20:42 +01:00
sw_isr_common.c arch: common: sw_isr: make sure that the table index is within range 2023-12-08 08:40:41 -05:00
timing.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00