Ignore:
Timestamp:
Sep 29, 1998, 12:40:33 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f1ccfde
Parents:
766ed7c
Message:

Patch from Ralf Corsepius <corsepiu@…>:

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sh/shared/setvec.c

    r766ed7c r21bfd93  
    11/*  set_vector
     2 *
     3 *  NOTE: This function is considered OBSOLETE and may vanish soon.
     4 *      Calls to set_vector should be replaced by calls to
     5 *      rtems_interrupt_catch or _CPU_ISR_install_raw_handler.
    26 *
    37 *  This routine installs an interrupt vector on the target Board/CPU.
     
    5357  return previous_isr;
    5458}
    55 
Note: See TracChangeset for help on using the changeset viewer.