[rtems commit] lm32: replace lm32_isr with rtems_isr

gedare at rtems.org gedare at rtems.org
Mon Apr 16 17:08:39 UTC 2012


Module:    rtems
Branch:    master
Commit:    416f1efbd2dfa82529fe2f1fc53c56eba51f5361
Changeset: http://git.rtems.org/rtems/commit/?id=416f1efbd2dfa82529fe2f1fc53c56eba51f5361

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Sun Apr 15 22:23:59 2012 -0400

lm32: replace lm32_isr with rtems_isr

---

 c/src/lib/libbsp/lm32/shared/startup/setvec.c |    4 ++--
 c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c    |    2 +-
 c/src/libchip/network/open_eth.c              |    4 ----
 cpukit/score/cpu/lm32/rtems/score/types.h     |    6 ------
 4 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/c/src/lib/libbsp/lm32/shared/startup/setvec.c b/c/src/lib/libbsp/lm32/shared/startup/setvec.c
index b7818d3..5dc8e61 100644
--- a/c/src/lib/libbsp/lm32/shared/startup/setvec.c
+++ b/c/src/lib/libbsp/lm32/shared/startup/setvec.c
@@ -26,13 +26,13 @@
 #include <rtems.h>
 #include <bsp.h>
 
-lm32_isr_entry set_vector(                    /* returns old vector */
+rtems_isr_entry set_vector(                    /* returns old vector */
   rtems_isr_entry     handler,                  /* isr routine        */
   rtems_vector_number vector,                   /* vector number      */
   int                 type                      /* RTEMS or RAW intr  */
 )
 {
-  lm32_isr_entry previous_isr;
+  rtems_isr_entry previous_isr;
 
   if ( type )
     rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
diff --git a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
index 568b413..e9ef8a1 100644
--- a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
+++ b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
@@ -134,7 +134,7 @@ static inline void tsmacregwrite(unsigned int reg, uint16_t value)
 
 rtems_isr tsmac_interrupt_handler(rtems_vector_number vector);
 
-extern lm32_isr_entry set_vector(rtems_isr_entry handler,
+extern rtems_isr_entry set_vector(rtems_isr_entry handler,
 				 rtems_vector_number vector, int type);
 
 /*
diff --git a/c/src/libchip/network/open_eth.c b/c/src/libchip/network/open_eth.c
index b9d178c..dc8b22b 100644
--- a/c/src/libchip/network/open_eth.c
+++ b/c/src/libchip/network/open_eth.c
@@ -55,11 +55,7 @@
 #undef free
 #endif
 
-#if defined(__lm32__)
-extern lm32_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
-#else
 extern rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
-#endif
 
  /*
 #define OPEN_ETH_DEBUG
diff --git a/cpukit/score/cpu/lm32/rtems/score/types.h b/cpukit/score/cpu/lm32/rtems/score/types.h
index a46dd75..949f9e2 100644
--- a/cpukit/score/cpu/lm32/rtems/score/types.h
+++ b/cpukit/score/cpu/lm32/rtems/score/types.h
@@ -37,12 +37,6 @@ extern "C" {
 /** This defines the type for a priority bit map entry. */
 typedef uint16_t Priority_bit_map_Control;
 
-/** This defines the return type for an ISR entry point. */
-typedef void lm32_isr;
-
-/** This defines the prototype for an ISR entry point. */
-typedef lm32_isr ( *lm32_isr_entry )( void );
-
 #ifdef __cplusplus
 }
 #endif




More information about the vc mailing list