From dc104a4039397056fc276d4f9a14d28b1405ae95 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 30 May 1998 11:46:21 +0000 Subject: Updated to current source and removed warnings. --- c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c | 81 ++++++++++++----------- 1 file changed, 42 insertions(+), 39 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/dmv177/startup/genpvec.c') 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. - */ -} - -- cgit v1.2.3