4.115
Last change
on this file since f68401e was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
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) 2005-2006 Kolja Waschk rtemsdev/ixo.de |
---|
16 | * Derived from no_cpu/no_bsp/startup/setvec.c 1.8, |
---|
17 | * COPYRIGHT (c) 1989-1999. |
---|
18 | * On-Line Applications Research Corporation (OAR). |
---|
19 | * |
---|
20 | * The license and distribution terms for this file may be |
---|
21 | * found in the file LICENSE in this distribution or at |
---|
22 | * http://www.rtems.com/license/LICENSE. |
---|
23 | */ |
---|
24 | |
---|
25 | #include <rtems.h> |
---|
26 | #include <bsp.h> |
---|
27 | |
---|
28 | rtems_isr_entry set_vector( /* returns old vector */ |
---|
29 | rtems_isr_entry handler, /* isr routine */ |
---|
30 | rtems_vector_number vector, /* vector number */ |
---|
31 | int type /* RTEMS or RAW intr */ |
---|
32 | ) |
---|
33 | { |
---|
34 | rtems_isr_entry previous_isr; |
---|
35 | |
---|
36 | if ( type ) |
---|
37 | rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr ); |
---|
38 | else { |
---|
39 | /* XXX: install non-RTEMS ISR as "raw" interupt */ |
---|
40 | } |
---|
41 | return previous_isr; |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.