summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/leon3/include/tm27.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sparc/leon3/include/tm27.h')
-rw-r--r--bsps/sparc/leon3/include/tm27.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/bsps/sparc/leon3/include/tm27.h b/bsps/sparc/leon3/include/tm27.h
index 690bb003e9..f078b12dd1 100644
--- a/bsps/sparc/leon3/include/tm27.h
+++ b/bsps/sparc/leon3/include/tm27.h
@@ -66,6 +66,8 @@
#define MUST_WAIT_FOR_INTERRUPT 1
+#define TM27_USE_VECTOR_HANDLER
+
#define Install_tm27_vector( handler ) \
set_vector( (handler), TEST_VECTOR, 1 );
@@ -88,9 +90,7 @@ extern uint32_t Interrupt_nest;
#define TEST_INTERRUPT_SOURCE2 6
#define MUST_WAIT_FOR_INTERRUPT 1
-static inline void Install_tm27_vector(
- void ( *handler )( rtems_vector_number )
-)
+static inline void Install_tm27_vector( rtems_interrupt_handler handler )
{
static rtems_interrupt_entry entry_low;
static rtems_interrupt_entry entry_high;
@@ -108,7 +108,7 @@ static inline void Install_tm27_vector(
rtems_interrupt_entry_initialize(
&entry_low,
- (rtems_interrupt_handler) handler,
+ handler,
NULL,
"tm27 low"
);
@@ -119,7 +119,7 @@ static inline void Install_tm27_vector(
);
rtems_interrupt_entry_initialize(
&entry_high,
- (rtems_interrupt_handler) handler,
+ handler,
NULL,
"tm27 high"
);