source: rtems/c/src/lib/libbsp/powerpc/gen405/startup/setvec.c @ 57ed393

4.104.114.84.95
Last change on this file since 57ed393 was 57ed393, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 8, 2001 at 11:46:58 PM

2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@…>

This modification is part of the submitted modifications necessary to
support the IBM PPC405 family. This submission was reviewed by
Thomas Doerfler <Thomas.Doerfler@…> who ensured it did
not negatively impact the ppc403 BSPs. The submission and tracking
process was captured as PR50.

  • ChangeLog?, Makefile.am, README, bsp_specs, bsp_specs.dl, configure.ac, times, dlentry/.cvsignore, dlentry/Makefile.am, dlentry/dlentry.S, include/.cvsignore, include/Makefile.am, include/bsp.h, include/bspopts.h.in, include/coverhd.h, startup/.cvsignore, startup/Makefile.am, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, startup/linkcmds.dl, startup/setvec.c, wrapup/.cvsignore, wrapup/Makefile.am: New files that are part of the new gen405 BSP.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  set_vector
2 *
3 *  This routine installs an interrupt vector on the target Board/CPU.
4 *  This routine is allowed to be as board dependent as necessary.
5 *
6 *  INPUT:
7 *    handler - interrupt handler entry point
8 *    vector  - vector number
9 *    type    - 0 indicates raw hardware connect
10 *              1 indicates RTEMS interrupt connect
11 *
12 *  RETURNS:
13 *    address of previous interrupt handler
14 *
15 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
16 *
17 *  COPYRIGHT (c) 1995 by i-cubed ltd.
18 *
19 *  To anyone who acknowledges that this file is provided "AS IS"
20 *  without any express or implied warranty:
21 *      permission to use, copy, modify, and distribute this file
22 *      for any purpose is hereby granted without fee, provided that
23 *      the above copyright notice and this notice appears in all
24 *      copies, and that the name of i-cubed limited not be used in
25 *      advertising or publicity pertaining to distribution of the
26 *      software without specific, written prior permission.
27 *      i-cubed limited makes no representations about the suitability
28 *      of this software for any purpose.
29 *
30 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/startup/setvec.c:
31 *
32 *  COPYRIGHT (c) 1989-1999.
33 *  On-Line Applications Research Corporation (OAR).
34 *
35 *  The license and distribution terms for this file may be
36 *  found in the file LICENSE in this distribution or at
37 *  http://www.OARcorp.com/rtems/license.html.
38 *
39 *  $Id$
40 */
41
42#include <rtems.h>
43#include <bsp.h>
44
45rtems_isr_entry set_vector(                    /* returns old vector */
46  rtems_isr_entry     handler,                  /* isr routine        */
47  rtems_vector_number vector,                   /* vector number      */
48  int                 type                      /* RTEMS or RAW intr  */
49)
50{
51  rtems_isr_entry previous_isr;
52
53  rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
54
55  return previous_isr;
56}
57
Note: See TracBrowser for help on using the repository browser.