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:
parent
9a4104dc28
commit
932953d2e6
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue