4.104.115
Last change
on this file since d59e9b9 was
d59e9b9,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/08 at 16:09:23
|
2008-10-01 Joel Sherrill <joel.sherrill@…>
- Makefile.am, preinstall.am, PCI_bus/PCI.c, PCI_bus/PCI.h,
PCI_bus/universe.c, console/85c30.c, console/85c30.h,
console/consolebsp.h, console/tbl85c30.c, include/gen2.h,
startup/Hwr_init.c, startup/bspstart.c, startup/genpvec.c,
startup/setvec.c, startup/vmeintr.c, timer/timer.c, tod/tod.c,
vme/VMEConfig.h: Some clean up.
- include/coverhd.h: Removed.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[d59e9b9] | 1 | /* |
---|
[9c448e1] | 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 | * |
---|
[d59e9b9] | 5 | * COPYRIGHT (c) 1989-2008. |
---|
[9c448e1] | 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 |
---|
[b14e2f2] | 10 | * http://www.rtems.com/license/LICENSE. |
---|
[9c448e1] | 11 | * |
---|
[d59e9b9] | 12 | * $Id$ |
---|
[9c448e1] | 13 | */ |
---|
| 14 | |
---|
| 15 | #include <rtems.h> |
---|
| 16 | #include <bsp.h> |
---|
| 17 | |
---|
| 18 | /* |
---|
[6128a4a] | 19 | * This routine installs vector number vector. |
---|
[9c448e1] | 20 | */ |
---|
[d59e9b9] | 21 | rtems_isr_entry set_vector( /* returns old vector */ |
---|
[9c448e1] | 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 | |
---|
[6128a4a] | 30 | /* |
---|
[9c448e1] | 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 | status = rtems_interrupt_catch( |
---|
| 39 | handler, vector, (rtems_isr_entry *) &previous_isr ); |
---|
| 40 | } |
---|
| 41 | return previous_isr; |
---|
| 42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.