4.104.115
Last change
on this file since b1783062 was
b1783062,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/08 at 22:55:13
|
2008-12-04 Jukka Pietarinen <jukka.pietarinen@…>
- ChangeLog?, Makefile.am, README, acinclude.m4, configure.ac,
shared/clock/ckinit.c, shared/clock/clock.h,
shared/console/console.c, shared/console/uart.c,
shared/console/uart.h, shared/start/start.S,
shared/startup/bspstart.c, shared/startup/setvec.c,
shared/timer/timer.c, shared/tsmac/dp83848phy.h,
shared/tsmac/tsmac.c, shared/tsmac/tsmac.h: New files.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[b1783062] | 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.com/license/LICENSE. |
---|
| 21 | * |
---|
| 22 | * $Id$ |
---|
| 23 | * |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | #include <rtems.h> |
---|
| 27 | #include <bsp.h> |
---|
| 28 | |
---|
| 29 | lm32_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 | lm32_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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.