Skip to content

Commit 4c30a9b

Browse files
Nicolas Pitrecfriedt
authored andcommitted
tests: interrupt: Fix nested_irq test for Arm's GIC in Non-Secure state
Change SGI interrupt lines from 14-15 to 6-7 for nested interrupt testing. SGI 8-15 are unaccessible from Non-Secure state (e.g., when running with TF-A), causing test failures. SGI 0-2 are reserved for Zephyr SMP IPIs, so use SGI 6-7 which work in both Secure and Non-Secure configurations. Fixes test failure: "isr0 did not execute" assertion at line 184. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
1 parent bc98698 commit 4c30a9b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/arch/common/interrupt/src/nested_irq.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@
4545
#endif
4646
#elif defined(CONFIG_GIC)
4747
/*
48-
* For the platforms that use the ARM GIC, use the SGI (software generated
49-
* interrupt) lines 14 and 15 for testing.
48+
* For platforms that use Arm's GIC, use the SGI (software generated
49+
* interrupt) lines 6 and 7 for testing.
50+
* SGI 0-2 are used by Zephyr for SMP IPIs.
51+
* SGI 8-15 are unaccessible from Non-Secure state.
5052
*/
51-
#define IRQ0_LINE 14
52-
#define IRQ1_LINE 15
53+
#define IRQ0_LINE 6
54+
#define IRQ1_LINE 7
5355

5456
/*
5557
* Choose lower prio for IRQ0 and higher priority for IRQ1

0 commit comments

Comments
 (0)