summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh1/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-09-29 12:40:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-09-29 12:40:33 +0000
commit21bfd93aaff71a70ca426adb5ccd8397e7d8e5ef (patch)
treee40c0ed97a4fb9be2d60851600abc4adc22976a3 /c/src/lib/libbsp/sh/gensh1/include/bsp.h
parentPatch from Eric Norum <eric@skatter.usask.ca>: (diff)
downloadrtems-21bfd93aaff71a70ca426adb5ccd8397e7d8e5ef.tar.bz2
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Please find enclosed a patch which enables me to build the bare-bsp for sh-rtems. Changes: 1. Add preinstall to libbsp/bare/include/Makefile.in 2. Removed FORCEIT, add preinstall to libbsp/sh/gensh1/include/Makefile.in 3. Disabled support of set_vector from sh code (shared/setvec.c is still present but isn't used anymore), set_vector replaced with standard rtems functions. Problems still present: 1. Support of spin-delays in bare bsp 2. Proper support of cpu frequency To configure I used: <srcdir>/configure \ --target=sh-rtems \ --prefix=<instdir>/sh-bare \ --enable-bare-cpu-model=sh7032 \ --enable-bare-cpu-cflags='-Wall -m1 -DMHZ=20 -DCPU_CONSOLE_DEVNAME="\"/dev/null\""' --enable-rtemsbsp=bare \ --disable-networking \ --disable-cxx \ --disable-posix \ --disable-tests IMO, if there are no objections to this patch, a similar approach should be applied to all CPUs/BSPs (esp. hppa1.1, mips64orion, ppc403, because they apply set_vector inside of libcpu).
Diffstat (limited to 'c/src/lib/libbsp/sh/gensh1/include/bsp.h')
-rw-r--r--c/src/lib/libbsp/sh/gensh1/include/bsp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/gensh1/include/bsp.h b/c/src/lib/libbsp/sh/gensh1/include/bsp.h
index ea7c370d77..8f676d07fe 100644
--- a/c/src/lib/libbsp/sh/gensh1/include/bsp.h
+++ b/c/src/lib/libbsp/sh/gensh1/include/bsp.h
@@ -55,7 +55,11 @@ extern "C" {
#define MUST_WAIT_FOR_INTERRUPT 0
-#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
+#define Install_tm27_vector( handler ) \
+{ \
+ rtems_isr_entry ignored ; \
+ rtems_interrupt_catch( (handler), 0, &ignored ) ; \
+}
#define Cause_tm27_intr()
@@ -110,12 +114,14 @@ extern void bsp_cleanup( void );
/*
* FIXME: Should this go to libcpu/sh/sh7032 ?
*/
+#if 0
/* functions */
sh_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 */
);
+#endif
#ifdef __cplusplus
}