forked from Imagelibrary/rtems
score: _SMP_Inter_processor_interrupt_handler()
Pass current processor control via parameter since it may be already available at the caller side.
This commit is contained in:
@@ -109,7 +109,9 @@ void bsp_interrupt_dispatch(void)
|
||||
if ( local_source & BCM2836_IRQ_SOURCE_MBOX3 ) {
|
||||
/* reset mailbox 3 contents to zero */
|
||||
BCM2835_REG(BCM2836_MAILBOX_3_READ_CLEAR_BASE + 0x10 * cpu_index_self) = 0xffffffff;
|
||||
_SMP_Inter_processor_interrupt_handler();
|
||||
_SMP_Inter_processor_interrupt_handler(
|
||||
_Per_CPU_Get_by_index(cpu_index_self)
|
||||
);
|
||||
}
|
||||
if ( cpu_index_self != 0 )
|
||||
return;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
static void bsp_inter_processor_interrupt(void *arg)
|
||||
{
|
||||
_SMP_Inter_processor_interrupt_handler();
|
||||
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||
}
|
||||
|
||||
uint32_t _CPU_SMP_Initialize(void)
|
||||
|
||||
@@ -755,7 +755,7 @@ static void bsp_inter_processor_interrupt(void *arg)
|
||||
|
||||
smp_apic_ack();
|
||||
|
||||
message = _SMP_Inter_processor_interrupt_handler();
|
||||
message = _SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||
|
||||
if ((message & SMP_MESSAGE_CLOCK_TICK) != 0) {
|
||||
Clock_isr(NULL);
|
||||
|
||||
@@ -100,7 +100,7 @@ void bsp_interrupt_dispatch(uintptr_t exception_number)
|
||||
|
||||
#ifdef RTEMS_SMP
|
||||
if (exception_number == 36) {
|
||||
_SMP_Inter_processor_interrupt_handler();
|
||||
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -101,7 +101,7 @@ void bsp_start_on_secondary_processor(void)
|
||||
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
||||
static void bsp_inter_processor_interrupt(void *arg)
|
||||
{
|
||||
_SMP_Inter_processor_interrupt_handler();
|
||||
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ static rtems_isr bsp_inter_processor_interrupt(
|
||||
rtems_vector_number vector
|
||||
)
|
||||
{
|
||||
_SMP_Inter_processor_interrupt_handler();
|
||||
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||
}
|
||||
|
||||
void bsp_start_on_secondary_processor()
|
||||
|
||||
@@ -165,13 +165,12 @@ void _SMP_Multicast_actions_process( void );
|
||||
*
|
||||
* @return The received message.
|
||||
*/
|
||||
static inline long unsigned _SMP_Inter_processor_interrupt_handler( void )
|
||||
static inline long unsigned _SMP_Inter_processor_interrupt_handler(
|
||||
Per_CPU_Control *cpu_self
|
||||
)
|
||||
{
|
||||
Per_CPU_Control *cpu_self;
|
||||
unsigned long message;
|
||||
|
||||
cpu_self = _Per_CPU_Get();
|
||||
|
||||
/*
|
||||
* In the common case the inter-processor interrupt is issued to carry out a
|
||||
* thread dispatch.
|
||||
|
||||
Reference in New Issue
Block a user