bsps: Always install IPI in SMP configs

The inter-processor interrupt (IPI) may be used to process per-CPU jobs.
See for example the blocked handler in T_interrupt_test().

Update #3199.
This commit is contained in:
Sebastian Huber
2020-08-31 14:12:14 +02:00
parent b87efa7599
commit d556af3605
4 changed files with 27 additions and 40 deletions

View File

@@ -45,16 +45,10 @@ void BSP_shared_interrupt_init(void)
int i;
for (i=0; i <= BSP_INTERRUPT_VECTOR_MAX_STD; i++) {
#if defined(LEON3) && \
(defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING))
/* Don't install IRQ handler on IPI interrupt. An SMP kernel with max one
* CPU does not use IPIs
*/
#ifdef RTEMS_SMP
if (rtems_configuration_get_maximum_processors() > 1)
#endif
if (i == LEON3_mp_irq)
continue;
#if defined(LEON3) && (defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING))
/* Don't install IRQ handler on IPI interrupt */
if (i == LEON3_mp_irq)
continue;
#endif
vector = SPARC_ASYNCHRONOUS_TRAP(i) + 0x10;
rtems_interrupt_catch(bsp_isr_handler, vector, &previous_isr);