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>
This commit is contained in:
Amneesh Singh 2025-03-20 18:10:29 +05:30 committed by Benjamin Cabé
commit 932953d2e6

View file

@ -207,6 +207,16 @@ static void sup_fp_thread_entry(void *p1, void *p2, void *p3)
break;
}
}
#elif defined(CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER)
for (i = CONFIG_NUM_IRQS - 1; i >= 0; i--) {
if (z_soc_irq_is_enabled(i) == 0) {
/*
* Similar to NVIC, get an IRQ line that is not enabled
* with the custom ARM controller
*/
break;
}
}
#else
/*
* SGIs are always enabled by default, so choose the last one