summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-30 11:46:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-30 11:46:21 +0000
commitdc104a4039397056fc276d4f9a14d28b1405ae95 (patch)
tree8bea1c7c5d678b78190211d263c069aa5fdb66c4 /c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
parentUsed shared sbrk.c. (diff)
downloadrtems-dc104a4039397056fc276d4f9a14d28b1405ae95.tar.bz2
Updated to current source and removed warnings.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c')
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c81
1 files changed, 42 insertions, 39 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c b/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
index 98989c2401..09918845b1 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c
@@ -46,8 +46,47 @@ EE_ISR_Type ISR_Nodes [NUM_LIRQ_HANDLERS];
rtems_unsigned16 Nodes_Used;
Chain_Control ISR_Array [NUM_LIRQ];
+/*PAGE
+ *
+ * external_exception_ISR
+ *
+ * This interrupt service routine is called for an External Exception.
+ *
+ * Input parameters:
+ * vector - vector number representing the external exception vector.
+ *
+ * Output parameters: NONE
+ *
+ * Return values:
+ */
+
+rtems_isr external_exception_ISR (
+ rtems_vector_number vector /* IN */
+)
+{
+ rtems_unsigned16 index;
+ Chain_Node *node;
+ EE_ISR_Type *ee_isr;
+
+ /*
+ * Read vector.
+ */
+ index = 0;
-/* PAGE
+ node = ISR_Array[ index ].first;
+ while ( !_Chain_Is_tail( &ISR_Array[ index ], node ) ) {
+ ee_isr = (EE_ISR_Type *) node;
+ (*ee_isr->handler)( ee_isr->vector );
+ node = node->next;
+ }
+
+ /*
+ * Clear the interrupt.
+ */
+}
+
+
+/*PAGE
*
* initialize_external_exception_vector
*
@@ -80,7 +119,7 @@ void initialize_external_exception_vector ()
PPC_IRQ_EXTERNAL , (rtems_isr_entry *) &previous_isr );
}
-/* PAGE
+/*PAGE
*
* set_EE_vector
*
@@ -95,6 +134,7 @@ void initialize_external_exception_vector ()
*
* Return values:
*/
+
rtems_isr_entry set_EE_vector(
rtems_isr_entry handler, /* isr routine */
rtems_vector_number vector /* vector number */
@@ -145,40 +185,3 @@ rtems_isr_entry set_EE_vector(
return 0;
}
-/* PAGE
- *
- * external_exception_ISR
- *
- * This interrupt service routine is called for an External Exception.
- *
- * Input parameters:
- * vector - vector number representing the external exception vector.
- *
- * Output parameters: NONE
- *
- * Return values:
- */
-
-rtems_isr external_exception_ISR (
- rtems_vector_number vector /* IN */
-)
-{
- rtems_unsigned16 index;
- EE_ISR_Type *node;
-
- /*
- * Read vector.
- */
- index = 0;
-
- node = ISR_Array[ index ].first;
- while ( !_Chain_Is_tail( &ISR_Array[ index ], node ) ) {
- (*node->handler)( node->vector );
- node = node->Node.next;
- }
-
- /*
- * Clear the interrupt.
- */
-}
-