summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/jmr3904/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-13 22:16:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-13 22:16:28 +0000
commit7a677fd7d3127d3fd93e32140532d4bad637bb71 (patch)
tree7634c790b2317c921145dbceca93824a5d875a18 /c/src/lib/libbsp/mips/jmr3904/startup
parent2000-12-13 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-7a677fd7d3127d3fd93e32140532d4bad637bb71.tar.bz2
2000-12-13 Joel Sherrill <joel@OARcorp.com>
* README: Updated. We are now vectoring a clock tick ISR handler. But RTEMS is not returning from the ISR properly. * clock/clockdrv.c: Now causes interrupts but has not been calibrated. * include/bsp.h: Use <libcpu/tx3904.h> * startup/Makefile.am: Add setvec.c from shared. * startup/bspstart.c: Initialize the status register (SR) so no interrupts are masked but global interrupts (SR_IEC) are off. Added call to install the ISR prologue code. * wrapup/Makefile.am: Pick up more pieces from libcpu.
Diffstat (limited to 'c/src/lib/libbsp/mips/jmr3904/startup')
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/startup/Makefile.am2
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/mips/jmr3904/startup/Makefile.am b/c/src/lib/libbsp/mips/jmr3904/startup/Makefile.am
index 4dd270fbea..21e282917b 100644
--- a/c/src/lib/libbsp/mips/jmr3904/startup/Makefile.am
+++ b/c/src/lib/libbsp/mips/jmr3904/startup/Makefile.am
@@ -9,7 +9,7 @@ VPATH = @srcdir@:@srcdir@/../../../shared
PGM = $(ARCH)/startup.rel
C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \
- gnatinstallhandler.c
+ gnatinstallhandler.c setvec.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
OBJS = $(C_O_FILES)
diff --git a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
index 1143386ada..2a5bc13e91 100644
--- a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c
@@ -90,6 +90,10 @@ void bsp_start( void )
_sys_exit( 1 );
BSP_Configuration.work_space_start = (void *) &WorkspaceBase;
+
+ mips_set_sr( 0xff00 ); /* all interrupts unmasked but globally off */
+ /* depend on the IRC to take care of things */
+ mips_install_isr_entries();
}
/* XXX */