summaryrefslogtreecommitdiffstats
path: root/bsps/arm/raspberrypi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-23 14:54:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-25 10:07:42 +0200
commit0d362ff397a42ec2fdae258a7cc61a8c07ffd8b5 (patch)
tree68af8a068a69832b2130efcce1be2c39a0ffc002 /bsps/arm/raspberrypi
parenttm27: Fix prototype warnings (diff)
downloadrtems-0d362ff397a42ec2fdae258a7cc61a8c07ffd8b5.tar.bz2
score: _SMP_Inter_processor_interrupt_handler()
Pass current processor control via parameter since it may be already available at the caller side.
Diffstat (limited to 'bsps/arm/raspberrypi')
-rw-r--r--bsps/arm/raspberrypi/irq/irq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bsps/arm/raspberrypi/irq/irq.c b/bsps/arm/raspberrypi/irq/irq.c
index 5b10385bfe..925596ae51 100644
--- a/bsps/arm/raspberrypi/irq/irq.c
+++ b/bsps/arm/raspberrypi/irq/irq.c
@@ -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;