Skip to content

Commit d0d1871

Browse files
author
Nicolas Pitre
committed
tests: arm64: Fix nested_irq test for 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 <[email protected]>
1 parent 36bc2f3 commit d0d1871

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@
4646
#elif defined(CONFIG_GIC)
4747
/*
4848
* For the platforms that use the ARM GIC, use the SGI (software generated
49-
* interrupt) lines 14 and 15 for testing.
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)