[rtems commit] arm: Rename inline functions
Sebastian Huber
sebh at rtems.org
Mon Jan 7 14:05:04 UTC 2013
Module: rtems
Branch: master
Commit: 0f7abd9943dc5be2f246bfe59c81a2770ed4f36c
Changeset: http://git.rtems.org/rtems/commit/?id=0f7abd9943dc5be2f246bfe59c81a2770ed4f36c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jan 4 16:25:19 2013 +0100
arm: Rename inline functions
Rename arm_status_irq_enable() to _ARMV4_Status_irq_enable() and
arm_status_restore() to _ARMV4_Status_restore().
---
c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c | 4 ++--
c/src/lib/libbsp/arm/lpc32xx/irq/irq.c | 4 ++--
cpukit/score/cpu/arm/rtems/score/armv4.h | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c b/c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c
index 8eeb677..4b84c94 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c
+++ b/c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c
@@ -35,13 +35,13 @@ void bsp_interrupt_dispatch(void)
rtems_vector_number vector = VICVectAddr;
/* Enable interrupts in program status register */
- uint32_t psr = arm_status_irq_enable();
+ uint32_t psr = _ARMV4_Status_irq_enable();
/* Dispatch interrupt handlers */
bsp_interrupt_handler_dispatch(vector);
/* Restore program status register */
- arm_status_restore(psr);
+ _ARMV4_Status_restore(psr);
/* Acknowledge interrupt */
VICVectAddr = 0;
diff --git a/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c b/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
index 94e0ca7..67506ee 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
+++ b/c/src/lib/libbsp/arm/lpc32xx/irq/irq.c
@@ -254,11 +254,11 @@ void bsp_interrupt_dispatch(void)
lpc32xx.sic_1.er = er_sic_1 & masks->field.sic_1;
lpc32xx.sic_2.er = er_sic_2 & masks->field.sic_2;
- psr = arm_status_irq_enable();
+ psr = _ARMV4_Status_irq_enable();
bsp_interrupt_handler_dispatch(vector);
- arm_status_restore(psr);
+ _ARMV4_Status_restore(psr);
lpc32xx.mic.er = er_mic & lpc32xx_irq_enable.field.mic;
lpc32xx.sic_1.er = er_sic_1 & lpc32xx_irq_enable.field.sic_1;
diff --git a/cpukit/score/cpu/arm/rtems/score/armv4.h b/cpukit/score/cpu/arm/rtems/score/armv4.h
index 98ac846..dfd57bb 100644
--- a/cpukit/score/cpu/arm/rtems/score/armv4.h
+++ b/cpukit/score/cpu/arm/rtems/score/armv4.h
@@ -55,7 +55,7 @@ void _ARMV4_Exception_irq_default( void );
void _ARMV4_Exception_fiq_default( void );
-static inline uint32_t arm_status_irq_enable( void )
+static inline uint32_t _ARMV4_Status_irq_enable( void )
{
uint32_t arm_switch_reg;
uint32_t psr;
@@ -74,7 +74,7 @@ static inline uint32_t arm_status_irq_enable( void )
return psr;
}
-static inline void arm_status_restore( uint32_t psr )
+static inline void _ARMV4_Status_restore( uint32_t psr )
{
ARM_SWITCH_REGISTERS;
More information about the vc
mailing list