forked from Imagelibrary/rtems
tm27: Use generic cpu index accessor
The arm_cp15 function for accessing the current CPU index is specific to ARMv7 while this header is used for ARMv8 as well. Instead, use a generic accessor that is part of the standard CPU API.
This commit is contained in:
committed by
Joel Sherrill
parent
bb57361bfd
commit
9e7b5ebd7d
@@ -31,7 +31,6 @@
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <libcpu/arm-cp15.h>
|
||||
|
||||
#define MUST_WAIT_FOR_INTERRUPT 1
|
||||
|
||||
@@ -80,7 +79,7 @@ static inline void Cause_tm27_intr(void)
|
||||
{
|
||||
rtems_status_code sc = arm_gic_irq_generate_software_irq(
|
||||
ARM_GIC_TM27_IRQ_LOW,
|
||||
1U << (arm_cp15_get_multiprocessor_affinity() & 0xff)
|
||||
1U << _SMP_Get_current_processor()
|
||||
);
|
||||
assert(sc == RTEMS_SUCCESSFUL);
|
||||
}
|
||||
@@ -94,7 +93,7 @@ static inline void Lower_tm27_intr(void)
|
||||
{
|
||||
rtems_status_code sc = arm_gic_irq_generate_software_irq(
|
||||
ARM_GIC_TM27_IRQ_HIGH,
|
||||
1U << (arm_cp15_get_multiprocessor_affinity() & 0xff)
|
||||
1U << _SMP_Get_current_processor()
|
||||
);
|
||||
assert(sc == RTEMS_SUCCESSFUL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user