source: rtems/bsps/no_cpu/no_bsp/start/setvec.c @ 1efa1c8

5
Last change on this file since 1efa1c8 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

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