source: rtems/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c @ 9345c7d

4.104.115
Last change on this file since 9345c7d was 9345c7d, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 7, 2009 at 3:49:23 PM

2009-08-07 Joel Sherrill <joel.sherrill@…>

  • console/console.c, startup/genpvec.c, startup/setvec.c: Disable call to rtems_interrupt_catch until it is fixed. Need to disabled set_vector.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  This routine installs an interrupt vector on the target Board/CPU.
3 *  This routine is allowed to be as board dependent as necessary.
4 *
5 *  COPYRIGHT (c) 1989-2008.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may in
9 *  the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#include <rtems.h>
16#include <bsp.h>
17
18/*
19 *  This routine installs vector number vector.
20 */
21rtems_isr_entry set_vector(                     /* returns old vector */
22  rtems_isr_entry     handler,                  /* isr routine        */
23  rtems_vector_number vector,                   /* vector number      */
24  int                 type                      /* RTEMS or RAW intr  */
25)
26{
27  rtems_isr_entry previous_isr;
28  rtems_status_code status;
29
30  /*
31   * vectors greater than PPC603e_IRQ_LAST are handled by the General purpose
32   * interupt handler.
33   */
34  if ( vector > PPC_IRQ_LAST )  {
35    set_EE_vector( handler, vector );
36  }
37  else  {
38    ;
39    #if 0
40    status = rtems_interrupt_catch(
41       handler, vector, (rtems_isr_entry *) &previous_isr );
42    #endif
43    #warning "Remove this whole method."
44  }
45  return previous_isr;
46}
Note: See TracBrowser for help on using the repository browser.