zephyr/tests/kernel/interrupt/testcase.yaml
Enjia Mai c9c8cec3b6 tests: interrupt: add test cases of direct interrupt for arch x86 and posix
Add test cases of direct interrupt for arch x86 and posix.

We register two direct interrupt at build time, then triggering
interrupt and check if ISR handler has executed or not. We also
check irq_enable and irq_disable works.

Why we add an extra compiler option "-mgeneral-regs-only" to make
it works in arch x86. because there might be some existing x87
instructions executing inside interrupt context.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
2021-05-07 23:24:17 -04:00

19 lines
430 B
YAML

tests:
arch.interrupt:
# nios2 excluded, see #22956
arch_exclude: nios2 x86
tags: kernel interrupt
filter: not CONFIG_TRUSTED_EXECUTION_NONSECURE
arch.interrupt.x86_64:
arch_allow: x86
tags: kernel interrupt
filter: CONFIG_X86_64
arch.interrupt.x86:
arch_allow: x86
tags: kernel interrupt
filter: not CONFIG_X86_64
extra_configs:
- CONFIG_COMPILER_OPT="-mgeneral-regs-only"