summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/leon2/include/bsp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-06-15 14:44:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-06-16 07:30:50 +0200
commit4e3e9df1b463cf06fac323140ca2b71f39d2d5f7 (patch)
treec64c41b833fbee170bc747eed39b384dfbe5c4e1 /bsps/sparc/leon2/include/bsp.h
parentpci: Do not use BSP-specific interrupt API (diff)
downloadrtems-4e3e9df1b463cf06fac323140ca2b71f39d2d5f7.tar.bz2
bsps: Remove uses of BSP-specific interrupt API
Update #3269.
Diffstat (limited to '')
-rw-r--r--bsps/sparc/leon2/include/bsp.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/bsps/sparc/leon2/include/bsp.h b/bsps/sparc/leon2/include/bsp.h
index 510262206b..4a2f5967ef 100644
--- a/bsps/sparc/leon2/include/bsp.h
+++ b/bsps/sparc/leon2/include/bsp.h
@@ -166,7 +166,10 @@ static __inline__ int BSP_shared_interrupt_unregister
* Arguments
* irq System IRQ number
*/
-extern void BSP_shared_interrupt_clear(int irq);
+static inline void BSP_shared_interrupt_clear( int irq )
+{
+ (void) rtems_interrupt_clear( (rtems_vector_number) irq );
+}
/* Enable Interrupt. This function will unmask the IRQ at the interrupt
* controller. This is normally done by _register(). Note that this will
@@ -175,7 +178,10 @@ extern void BSP_shared_interrupt_clear(int irq);
* Arguments
* irq System IRQ number
*/
-extern void BSP_shared_interrupt_unmask(int irq);
+static inline void BSP_shared_interrupt_unmask( int irq )
+{
+ (void) rtems_interrupt_vector_enable( (rtems_vector_number) irq );
+}
/* Disable Interrupt. This function will mask one IRQ at the interrupt
* controller. This is normally done by _unregister(). Note that this will
@@ -184,7 +190,10 @@ extern void BSP_shared_interrupt_unmask(int irq);
* Arguments
* irq System IRQ number
*/
-extern void BSP_shared_interrupt_mask(int irq);
+static inline void BSP_shared_interrupt_mask( int irq )
+{
+ (void) rtems_interrupt_vector_disable( (rtems_vector_number) irq );
+}
/*
* Delay method