Skip to content

Commit 932953d

Browse files
natto1784kartben
authored andcommitted
tests: float_disable: honor custom ARM interrupt controllers
This patch allows checking for any custom ARM interrupt controller to get a non-enabled IRQ line instead of assuming that GIC is enabled Signed-off-by: Amneesh Singh <a-singh7@ti.com>
1 parent 9a4104d commit 932953d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/kernel/fpu_sharing/float_disable/src/k_float_disable.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ static void sup_fp_thread_entry(void *p1, void *p2, void *p3)
207207
break;
208208
}
209209
}
210+
#elif defined(CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER)
211+
for (i = CONFIG_NUM_IRQS - 1; i >= 0; i--) {
212+
if (z_soc_irq_is_enabled(i) == 0) {
213+
/*
214+
* Similar to NVIC, get an IRQ line that is not enabled
215+
* with the custom ARM controller
216+
*/
217+
break;
218+
}
219+
}
210220
#else
211221
/*
212222
* SGIs are always enabled by default, so choose the last one

0 commit comments

Comments
 (0)