summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-07 17:02:07 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-07 17:02:07 -0500
commit19a3f501bb68492c333f6fe0e26176e323a86387 (patch)
treeebab6726829870d297f222f2706669f17d2a5f7d
parentdac3a5261751b0d11c8f9869eb9e8279377f2e9e (diff)
downloadrtems-19a3f501bb68492c333f6fe0e26176e323a86387.tar.bz2
jmr3904 - Correct tm27.h to use PIC Interrupt Model
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/include/tm27.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/mips/jmr3904/include/tm27.h b/c/src/lib/libbsp/mips/jmr3904/include/tm27.h
index baf0baac22..027d26c4a4 100644
--- a/c/src/lib/libbsp/mips/jmr3904/include/tm27.h
+++ b/c/src/lib/libbsp/mips/jmr3904/include/tm27.h
@@ -1,11 +1,11 @@
+/**
+ * @file
+ */
+
/*
- * tm27.h
- *
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
- *
- * $Id$
*/
#ifndef _RTEMS_TMTEST27
@@ -19,23 +19,14 @@
* Define the interrupt mechanism for Time Test 27
*/
-#define MUST_WAIT_FOR_INTERRUPT 1
-
-#if 0
-#define Install_tm27_vector( handler ) \
- (void) set_vector( handler, TX3904_IRQ_SOFTWARE_1, 1 ); \
+#include <bsp/irq.h>
-#define Cause_tm27_intr() \
- __asm__ volatile ( "syscall 0x01" : : );
-
-#define CLOCK_VECTOR TX3904_IRQ_TMR0
-
-#define Clear_tm27_intr() /* empty */
+#define MUST_WAIT_FOR_INTERRUPT 1
-#define Lower_tm27_intr() /* empty */
-#else
#define Install_tm27_vector( handler ) \
- (void) set_vector( handler, TX3904_IRQ_TMR0, 1 ); \
+ rtems_interrupt_handler_install( \
+ TX3904_IRQ_TMR0, "benchmark", 0, \
+ (rtems_interrupt_handler)handler, NULL );
#define Cause_tm27_intr() \
do { \
@@ -59,5 +50,3 @@
mips_enable_in_interrupt_mask( 0xff01 );
#endif
-
-#endif