forked from Imagelibrary/rtems
m68k: use shared setvec.c
This commit is contained in:
@@ -7,7 +7,7 @@ ACLOCAL_AMFLAGS = -I ../../../aclocal
|
||||
## Descend into the @RTEMS_BSP_FAMILY@ directory
|
||||
SUBDIRS = @RTEMS_BSP_FAMILY@
|
||||
|
||||
EXTRA_DIST = shared/m68kpretaskinghook.c shared/setvec.c shared/start.S
|
||||
EXTRA_DIST = shared/m68kpretaskinghook.c ../shared/setvec.c shared/start.S
|
||||
|
||||
EXTRA_DIST += shared/bspspuriousinit.c shared/m68000spurious.c
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
startup/init5282.c startup/bspstart.c \
|
||||
../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bsppost.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/bspstart.c startup/init5272.c ../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# console
|
||||
libbsp_a_SOURCES += console/console-io.c ../../shared/console-polled.c
|
||||
|
||||
@@ -37,7 +37,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bsppost.c ../../shared/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/sbrk.c \
|
||||
../../m68k/shared/setvec.c ../../shared/gnatinstallhandler.c
|
||||
../../shared/setvec.c ../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
# console
|
||||
|
||||
@@ -39,7 +39,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/bsppost.c ../../shared/bspstart.c startup/init68340.c \
|
||||
../../shared/bootcard.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
startup/dumpanic.c ../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += startup/alloc360.c ../../shared/bspclean.c \
|
||||
../../shared/bsplibc.c ../../shared/bsppost.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/bspstart.c \
|
||||
startup/init68360.c ../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -37,7 +37,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/bspreset_loop.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bsppredriverhook.c startup/init548x.c startup/bspstart.c \
|
||||
../../shared/bootcard.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -34,7 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c \
|
||||
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
|
||||
@@ -43,7 +43,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/bsppost.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bspstart.c startup/init5206e.c ../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# console
|
||||
libbsp_a_SOURCES += console/console.c ../../shared/dummy_printk_support.c
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
startup/init52235.c ../../shared/bspstart.c startup/cfinit.c \
|
||||
startup/bspgetcpuclockspeed.c ../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -37,7 +37,7 @@ libbsp_a_SOURCES = \
|
||||
../../shared/bspgetworkarea.c \
|
||||
startup/init5225x.c startup/bspstart.c \
|
||||
../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
libbsp_a_SOURCES += clock/clock.c
|
||||
libbsp_a_SOURCES += console/console.c
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bsplibc.c ../../shared/bsppost.c ../../shared/bspreset_loop.c \
|
||||
startup/bspgetcpuclockspeed.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bspgetworkarea.c startup/init5235.c startup/bspstart.c \
|
||||
../../shared/bootcard.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c ../../shared/bspinit.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
startup/init5329.c startup/bspstart.c startup/cfinit.c\
|
||||
../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
|
||||
|
||||
@@ -35,7 +35,7 @@ libbsp_a_SOURCES =
|
||||
libbsp_a_SOURCES += startup/start_c.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bspstart.c startup/bsppredriverhook.c \
|
||||
../../shared/bspclean.c ../../shared/bootcard.c ../../shared/sbrk.c \
|
||||
../../m68k/shared/setvec.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/setvec.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/gnatinstallhandler.c \
|
||||
startup/except_vect_332_ROM.S
|
||||
# clock
|
||||
|
||||
@@ -34,7 +34,7 @@ libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bsppredriverhook.c \
|
||||
startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c
|
||||
../../shared/sbrk.c ../../shared/setvec.c
|
||||
# gnatsupp
|
||||
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
|
||||
@@ -34,7 +34,7 @@ libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/sbrk.c \
|
||||
../../m68k/shared/setvec.c ../../shared/gnatinstallhandler.c
|
||||
../../shared/setvec.c ../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
# console
|
||||
|
||||
@@ -33,8 +33,8 @@ libbsp_a_SOURCES =
|
||||
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bsppredriverhook.c \
|
||||
startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c ../../m68k/shared/setvec.c \
|
||||
../../shared/bspgetworkarea.c ../../m68k/shared/setvec.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/setvec.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += ../mvme147/clock/ckinit.c
|
||||
|
||||
@@ -39,7 +39,7 @@ libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \
|
||||
startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c startup/page_table.c \
|
||||
../../shared/bspgetworkarea.c startup/page_table.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
|
||||
@@ -39,7 +39,7 @@ libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bspgetworkarea.c \
|
||||
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/bsppretaskinghook.c startup/page_table.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
|
||||
@@ -54,7 +54,7 @@ libbsp_a_SOURCES += startup/cpuboot.c startup/crc.c startup/debugport.c \
|
||||
startup/trace.c ../../shared/gnatinstallhandler.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bsppost.c \
|
||||
../../shared/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
|
||||
../../m68k/shared/setvec.c
|
||||
../../shared/setvec.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/ckinit.c
|
||||
# console
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* This routine installs an interrupt vector using the basic
|
||||
* RTEMS mechanisms. This implementation should be suitable for
|
||||
* most m68k based boards. However, if the board has an unusual
|
||||
* interrupt controller or most somehow manipulate board specific
|
||||
* hardware to enable/disable, mask, prioritize, etc an interrupt
|
||||
* source, then this routine should be customized to support that.
|
||||
*
|
||||
* 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 <rtems.h>
|
||||
#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 previous_isr;
|
||||
|
||||
if ( type )
|
||||
rtems_interrupt_catch( handler, vector, &previous_isr );
|
||||
else {
|
||||
_CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr );
|
||||
}
|
||||
return (rtems_isr_entry) previous_isr;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bspstart.c ../../shared/bootcard.c \
|
||||
startup/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
|
||||
../../shared/bspgetworkarea.c ../../shared/sbrk.c \
|
||||
../../m68k/shared/setvec.c ../../shared/gnatinstallhandler.c \
|
||||
../../shared/setvec.c ../../shared/gnatinstallhandler.c \
|
||||
../../m68k/shared/bspspuriousinit.c ../../m68k/shared/m68000spurious.c \
|
||||
startup/spurious_assistant.c
|
||||
# clock
|
||||
|
||||
@@ -34,7 +34,7 @@ libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c startup/bspreset.c
|
||||
../../shared/bsppost.c ../../shared/bsppredriverhook.c \
|
||||
../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
|
||||
startup/init5282.c startup/bspstart.c ../../shared/bootcard.c \
|
||||
../../shared/sbrk.c ../../m68k/shared/setvec.c \
|
||||
../../shared/sbrk.c ../../shared/setvec.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# clock
|
||||
libbsp_a_SOURCES += clock/clock.c ../../../clockdrv_shell.h
|
||||
|
||||
Reference in New Issue
Block a user