2009-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am: Switch to shared routine.
	* startup/setvec.c: Removed.
This commit is contained in:
Joel Sherrill
2009-07-03 13:58:17 +00:00
parent 2ed512bfb2
commit c5dcfd4e0e
3 changed files with 6 additions and 45 deletions

View File

@@ -1,3 +1,8 @@
2009-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Switch to shared routine.
* startup/setvec.c: Removed.
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for

View File

@@ -32,7 +32,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
startup/bspstart.c startup/bsppost.c startup/bspgetworkarea.c \
startup/setvec.c ../../shared/bootcard.c
../../shared/setvec.c ../../shared/bootcard.c
libbsp_a_SOURCES += startup/main.c
# clock

View File

@@ -1,44 +0,0 @@
/* set_vector
*
* This routine installs an interrupt vector on UNIX.
*
* INPUT:
* handler - interrupt handler entry point
* vector - vector number
* type - 0 indicates raw hardware connect
* 1 indicates RTEMS interrupt connect
*
* RETURNS:
* address of previous interrupt handler
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <bsp.h>
rtems_isr_entry
set_vector( /* returns old vector */
rtems_isr_entry handler, /* isr routine */
rtems_vector_number vector, /* vector number */
int type /* RTEMS or RAW intr */
)
{
rtems_isr_entry rtems_isr_ptr = 0;
proc_ptr raw_isr_ptr;
if ( type ) {
rtems_interrupt_catch( handler, vector, &rtems_isr_ptr );
return rtems_isr_ptr;
} else {
_CPU_ISR_install_vector( vector, (proc_ptr) handler, &raw_isr_ptr );
return raw_isr_ptr;
}
}