source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/startup/setvec.c @ 8ef3818

4.104.114.84.95
Last change on this file since 8ef3818 was 8ef3818, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 7:57:02 PM

Patch from John Cotton <john.cotton@…>, Charles-Antoine Gauthier
<charles.gauthier@…>, and Darlene A. Stewart
<Darlene.Stewart@…> to add support for a number of very
significant things:

+ BSPs for many variations on the Motorola MBX8xx board series
+ Cache Manager including initial support for m68040

and PowerPC

+ Rework of mpc8xx libcpu code so all mpc8xx CPUs now use

same code base.

+ Rework of eth_comm BSP to utiltize above.

John reports this works on the 821 and 860

  • Property mode set to 100644
File size: 1.3 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 *  COPYRIGHT (c) 1989-1998.
16 *  On-Line Applications Research Corporation (OAR).
17 *  Copyright assigned to U.S. Government, 1994.
18 *
19 *  The license and distribution terms for this file may be
20 *  found in the file LICENSE in this distribution or at
21 *  http://www.OARcorp.com/rtems/license.html.
22 *
23 *  $Id$
24 */
25
26#include <rtems.h>
27#include <bsp.h>
28
29rtems_isr_entry set_vector(                     /* returns old vector */
30  rtems_isr_entry     handler,                  /* isr routine        */
31  rtems_vector_number vector,                   /* vector number      */
32  int                 type                      /* RTEMS or RAW intr  */
33)
34{
35  rtems_isr_entry previous_isr;
36 
37  if (type) {
38    rtems_interrupt_catch(handler, vector, (rtems_isr_entry *) &previous_isr );
39  } else {
40    /* XXX: install non-RTEMS ISR as "raw" interupt */
41  }
42  return previous_isr;
43}
44
Note: See TracBrowser for help on using the repository browser.