summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/simsh4
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 15:24:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-30 15:24:10 +0000
commit82c873099e86721003de5ce60a9dbe6ccfd368a2 (patch)
tree0f1f86f80f2d3a68232857908f860c2fe7ededa2 /c/src/lib/libbsp/sh/simsh4
parent2008-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-82c873099e86721003de5ce60a9dbe6ccfd368a2.tar.bz2
2008-09-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* simsh4/.cvsignore, simsh4/ChangeLog, simsh4/Makefile.am, simsh4/README, simsh4/bsp_specs, simsh4/configure.ac, simsh4/preinstall.am, simsh4/clock/ckinit.c, simsh4/console/console.c, simsh4/include/.cvsignore, simsh4/include/bsp.h, simsh4/include/coverhd.h, simsh4/include/ramdisk.h, simsh4/include/syscall.h, simsh4/include/tm27.h, simsh4/start/start.S, simsh4/startup/hw_init.c, simsh4/startup/linkcmds, simsh4/startup/linkcmds-le, simsh4/startup/linkcmds-le.coff, simsh4/timer/timer.c, simsh4/tools/.cvsignore, simsh4/tools/ChangeLog, simsh4/tools/Makefile.am, simsh4/tools/configure.ac, simsh4/tools/runtest.in: Removed.
Diffstat (limited to 'c/src/lib/libbsp/sh/simsh4')
-rw-r--r--c/src/lib/libbsp/sh/simsh4/.cvsignore8
-rw-r--r--c/src/lib/libbsp/sh/simsh4/ChangeLog567
-rw-r--r--c/src/lib/libbsp/sh/simsh4/Makefile.am57
-rw-r--r--c/src/lib/libbsp/sh/simsh4/README47
-rw-r--r--c/src/lib/libbsp/sh/simsh4/bsp_specs19
-rw-r--r--c/src/lib/libbsp/sh/simsh4/clock/ckinit.c142
-rw-r--r--c/src/lib/libbsp/sh/simsh4/configure.ac41
-rw-r--r--c/src/lib/libbsp/sh/simsh4/console/console.c411
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/.cvsignore2
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/bsp.h108
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/coverhd.h120
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/ramdisk.h53
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/syscall.h30
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/tm27.h36
-rw-r--r--c/src/lib/libbsp/sh/simsh4/preinstall.am83
-rw-r--r--c/src/lib/libbsp/sh/simsh4/start/start.S169
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/hw_init.c57
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/linkcmds204
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le245
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff202
-rw-r--r--c/src/lib/libbsp/sh/simsh4/timer/timer.c93
-rw-r--r--c/src/lib/libbsp/sh/simsh4/tools/.cvsignore9
-rw-r--r--c/src/lib/libbsp/sh/simsh4/tools/ChangeLog52
-rw-r--r--c/src/lib/libbsp/sh/simsh4/tools/Makefile.am26
-rw-r--r--c/src/lib/libbsp/sh/simsh4/tools/configure.ac24
-rw-r--r--c/src/lib/libbsp/sh/simsh4/tools/runtest.in231
26 files changed, 0 insertions, 3036 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/.cvsignore b/c/src/lib/libbsp/sh/simsh4/.cvsignore
deleted file mode 100644
index baba64eafa..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/.cvsignore
+++ /dev/null
@@ -1,8 +0,0 @@
-aclocal.m4
-autom4te*.cache
-config.cache
-config.log
-config.status
-configure
-Makefile
-Makefile.in
diff --git a/c/src/lib/libbsp/sh/simsh4/ChangeLog b/c/src/lib/libbsp/sh/simsh4/ChangeLog
deleted file mode 100644
index 8bdd77a5f7..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/ChangeLog
+++ /dev/null
@@ -1,567 +0,0 @@
-2008-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Eliminate bsp.am. Build startup files as side-effect
- of building libbspstart.a, using automake-rules.
-
-2008-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Eliminate *_SOURCES.
-
-2008-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Move noinst_LIBRARIES = libbsp.a before its
- components.
-
-2008-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Remove noinst_PROGRAMS (Unused).
-
-2008-09-26 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Cleanup ../../shared/include/bootcard.h handling.
-
-2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * configure.ac: Make letting boot_card() handle work area allocation
- mandatory. Rename RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION to
- BSP_BOOTCARD_OPTIONS.
-
-2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * Makefile.am, startup/linkcmds, startup/linkcmds-le,
- startup/linkcmds-le.coff: Use top level shared bsp_get_work_area()
- implementation.
-
-2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * clock/ckinit.c: Add use of bsp_get_work_area() in its own file and
- rely on BSP Framework to perform more initialization. Remove
- unnecessary includes of rtems/libio.h and rtems/libcsupport.h. All
- SuperH BSPs now share a common bsp_start() implementation.
-
-2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * Makefile.am, configure.ac, include/bsp.h, startup/hw_init.c,
- startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Use
- shared bsp_get_work_area() in its own file and rely on BSP Framework
- to perform more initialization. After factoring this out, it turned
- out that all SuperH BSPs has the same bsp_start() implementation so
- this was made shared.
- * startup/bspstart.c: Removed.
-
-2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * include/bsp.h: Review of all bsp_cleanup() implementations. In this
- phase, all prototypes were removed from bsp.h and empty
- implementations were removed and made to use the shared stub.
-
-2008-09-05 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * clock/ckinit.c: The Shared Memory Driver no longer requires the
- special IOCTL in Clock_control. This was a hack which has existed
- since before the Classic API Timer Manager was implemented. All
- implementations of and references to Clock_control were removed.
-
-2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * timer/timer.c: Eliminate empty function from every benchmark timer
- driver. Fix spelling.
-
-2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * timer/timer.c: Rename timer driver methods to follow RTEMS
- programming conventions.
-
-2008-08-27 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * timer/timer.c: Eliminate rtems_boolean.
-
-2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
- Framework to ask the BSP where it has memory for the RTEMS Workspace
- and C Program Heap. These collectively are referred to as work area.
- If the BSP supports this, then it does not have to include code to
- split the available memory between the two areas. This reduces the
- amount of code in the BSP specific bspstart.c file. Additionally, the
- shared framework can initialize the C Library, call
- rtems_debug_enable(), and dirty the work area memory. Until most/all
- BSPs support this new capability, if the BSP supports this, it should
- call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
- When the transition is complete, this autoconf macro can be removed.
-
-2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * Makefile.am: Rework to avoid .rel files.
-
-2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * startup/bspstart.c: Refactored and renamed initialization routines to
- rtems_initialize_data_structures, rtems_initialize_before_drivers,
- rtems_initialize_device_drivers, and
- rtems_initialize_start_multitasking. This opened the sequence up so
- that bootcard() could provide a more robust and flexible framework
- which is easier to explain and understand. This also lays the
- groundwork for sharing the division of available memory between the
- RTEMS workspace and heap and the C library initialization across all
- BSPs.
-
-2008-04-23 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * console/console.c: Remove all references to console_reserve_resources
- and termios_reserve_resources.
-
-2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Add
- wildcard to gcc_except_table section so programs compiled with gcc
- 4.3.x can link.
-
-2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * clock/ckinit.c, include/bsp.h, startup/bspstart.c: Eliminate copies
- of the Configuration Table. Use the RTEMS provided accessor macros to
- obtain configuration fields.
-
-2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
- from CPU Table to Configuration Table. Eliminate CPU Table from all
- ports. Delete references to CPU Table in all forms.
-
-2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * Makefile.am, startup/bspstart.c: Moved most of the remaining CPU
- Table fields to the Configuration Table. This included
- pretasking_hook, predriver_hook, postdriver_hook, idle_task,
- do_zero_of_workspace, extra_mpci_receive_server_stack,
- stack_allocate_hook, and stack_free_hook. As a side-effect of this
- effort some multiprocessing code was made conditional and some style
- clean up occurred.
-
-2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * startup/bspstart.c: Fix mistake in previous work.
-
-2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * clock/ckinit.c, startup/bspstart.c: Eliminate the
- clicks_per_microsecond field in the SuperH CPU Table and define
- another mechanism for drivers to obtain this information.
-
-2007-05-03 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds: Handle .data.* sections
-
-2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * bsp_specs: Remove qrtems_debug.
-
-2007-04-02 Joel Sherrill <joel@OARcorp.com>
-
- * Makefile.am: Add dummy printk support so all tests link.
-
-2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * configure.ac: New BUG-REPORT address.
-
-2006-11-15 Joel Sherrill <joel@OARcorp.com>
-
- * Makefile.am: Merge c_rtems_main() into boot_card(). This eliminated a
- file and simplified initialization.
-
-2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Remove superfluous -DASM.
-
-2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * configure.ac: Require autoconf-2.60. Require automake-1.10.
-
-2006-06-24 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Add
- .rela.dyn sections.
-
-2006-03-08 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Add
- .gnu.linkonce.b.* section.
-
-2006-02-08 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff: Add
- sections required by newer gcc versions.
-
-2006-01-11 Ralf Corsepius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Add preinstall.am.
-
-2005-05-26 Ralf Corsepius <ralf.corsepius@rtems.org>
-
- * include/bsp.h: New header guard.
-
-2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
-
-2005-01-02 Ralf Corsepius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Remove build-variant support.
-
-2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * configure.ac: Require automake > 1.9.
-
-2004-04-23 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- PR 610/bsps
- * Makefile.am: Add include/tm27.h, Cosmetics.
- * include/tm27.h: Final cosmetics.
-
-2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * include/bsp.h: Split out tmtest27 support.
- * include/tm27.h: New.
-
-2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- PR 613/bsps
- * include/bsp.h: Remove MAX_LONG_TEST_DURATION.
-
-2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- PR 614/bsps
- * include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
-
-2004-04-02 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * start/start.S: Include <rtems/asm.h> instead of <asm.h>.
-
-2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * include/bsp.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
- * include/bsp.h: Include <rtems/console.h> instead of <console.h>.
- * startup/hw_init.c: Include <rtems/iosupp.h> instead of <iosupp.h>.
-
-2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * clock/ckinit.c, include/bsp.h, startup/bspstart.c, timer/timer.c:
- Convert to using c99 fixed size types.
-
-2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Reflect changes to bsp.am.
- Preinstall dist_project_lib*.
-
-2004-02-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Reflect changes to bsp.am.
-
-2004-02-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
-
-2004-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am,
- startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am. Use automake
- compilation rules.
- * clock/Makefile.am, console/Makefile.am, startup/Makefile.am,
- timer/Makefile.am, wrapup/Makefile.am: Remove.
- * configure.ac: Reflect changes above.
-
-2004-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Add nostdinc to AUTOMAKE_OPTIONS.
- Add RTEMS_PROG_CCAS.
-
-2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Add PREINSTALL_DIRS.
- * wrapup/Makefile.am: Reflect changes to libcpu.
-
-2004-01-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * startup/Makefile.am: Remove bogus EXTRA_DIST.
- * timer/Makefile.am: Remove bogus EXTRA_DIST.
- * wrapup/Makefile.am: Reflect changes to libcpu.
-
-2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
- Add PRE/TMPINSTALL_FILES to CLEANFILES.
- * startup/Makefile.am: Ditto.
-
-2004-01-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Regenerate.
-
-2004-01-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: Remove.
- * Makefile.am: Merge-in start/Makefile.am.
- * configure.ac: Reflect changes above.
-
-2004-01-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Eliminate $(LIB).
- Use noinst_DATA to trigger building libbsp.a.
-
-2003-12-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: s,${PROJECT_RELEASE}/lib,$(PROJECT_LIB),g.
- * startup/Makefile.am: s,${PROJECT_RELEASE}/lib,$(PROJECT_LIB),g.
-
-2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
- * startup/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
-
-2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Require automake >= 1.8, autoconf >= 2.59.
-
-2003-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * clock/Makefile.am: Misc cleanups and fixes.
- * start/Makefile.am: Misc cleanups and fixes.
- * startup/Makefile.am: Misc cleanups and fixes.
- * timer/Makefile.am: Misc cleanups and fixes.
-
-2003-12-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Add preinstallation dirstamp support.
- * clock/Makefile.am: Cosmetics.
- * console/Makefile.am: Cosmetics.
- * startup/Makefile.am: Cosmetics.
- * timer/Makefile.am: Cosmetics.
- * wrapup/Makefile.am: Cosmetics.
-
-2003-12-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * console/Makefile.am: Remove all-local: $(ARCH).
- * start/Makefile.am: Remove all-local: $(ARCH).
- * startup/Makefile.am: Remove all-local: $(ARCH).
- * wrapup/Makefile.am: Remove all-local: $(ARCH).
-
-2003-09-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Merge-in include/Makefile.am.
- Reflect changes to bsp.am.
- * include/Makefile.am: Remove.
- * configure.ac: Reflect changes above.
-
-2003-09-04 Joel Sherrill <joel@OARcorp.com>
-
- * clock/ckinit.c, console/console.c, include/bsp.h, include/coverhd.h,
- include/ramdisk.h, start/start.S, startup/bspstart.c,
- startup/hw_init.c, startup/linkcmds, startup/linkcmds-le.coff,
- timer/timer.c, tools/runtest.in: URL for license changed.
-
-2003-08-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Add tools to SUBDIRS.
- * configure.ac: Add RTEMS_CONFIG_BUILD_SUBDIRS(tools).
-
-2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Reflect having moved aclocal/.
-
-2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Reflect having moved automake/.
- * clock/Makefile.am: Reflect having moved automake/.
- * console/Makefile.am: Reflect having moved automake/.
- * include/Makefile.am: Reflect having moved automake/.
- * start/Makefile.am: Reflect having moved automake/.
- * startup/Makefile.am: Reflect having moved automake/.
- * timer/Makefile.am: Reflect having moved automake/.
- * tools/Makefile.am: Reflect having moved automake/.
- * wrapup/Makefile.am: Reflect having moved automake/.
-
-2003-08-14 Joel Sherrill <joel@OARcorp.com>
-
- * tools/runtest: Add fileio to list of interactive tests.
-
-2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Use rtems-bugs@rtems.com as bug report email address.
-
-2003-08-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- PR 445/bsps
- * bsp_specs: Remove -D__embedded__ -Asystem(embedded) from cpp.
- Remove cpp, old_cpp (now unused).
-
-2003-06-13 Joel Sherrill <joel@OARcorp.com>
-
- * console/console.c, startup/linkcmds: Removed warnings.
-
-2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Remove AC_CONFIG_AUX_DIR.
-
-2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
-
-2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: AC_PREREQ(2.57).
-
-2003-01-28 Joel Sherrill <joel@OARcorp.com>
-
- * startup/Makefile.am, startup/linkcmds, startup/linkcmds-le,
- startup/linkcmds-le.coff: Fix to work around truncated section names.
-
-2003-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Fix typo in CPU_PIECES handling.
-
-2003-01-20 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds*: Add FreeBSD sysctl() sections.
-
-2003-01-20 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds-le, startup/linkcmds-le.coff: Add FreeBSD sysctl()
- sections.
-
-2003-01-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Reflect changes to libcpu/sh/*.
-
-2003-01-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * clock/Makefile.am: Don't include @RTEMS_BSP@.cfg.
- * console/Makefile.am: Don't include @RTEMS_BSP@.cfg.
- * start/Makefile.am: Don't include @RTEMS_BSP@.cfg.
- * startup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
- * timer/Makefile.am: Don't include @RTEMS_BSP@.cfg.
-
-2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: Use install-data-local to install startfile.
-
-2002-12-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
-
-2002-11-07 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds: Include all .rodata* sections.
-
-2002-11-01 Joel Sherrill <joel@OARcorp.com>
-
- * clock/ckinit.c, console/console.c: Removed warnings.
-
-2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * .cvsignore: Reformat.
- Add autom4te*cache.
- Remove autom4te.cache.
-
-2002-09-14 Joel Sherrill <joel@OARcorp.com>
-
- * startup/bspstart.c: As part of fixing PR281 on gensh4, a review
- of all calls to bsp_libc_init() resulted in some cleanup here.
-
-2002-08-21 Joel Sherrill <joel@OARcorp.com>
-
- * bsp_specs: Added support for -nostdlibs.
-
-2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: Use .$(OBJEXT) instead of .o.
-
-2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * clock/Makefile.am: Use .$(OBJEXT) instead of .o.
- * console/Makefile.am: Use .$(OBJEXT) instead of .o.
- * start/Makefile.am: Use .$(OBJEXT) instead of .o.
- * startup/Makefile.am: Use .$(OBJEXT) instead of .o.
- * timer/Makefile.am: Use .$(OBJEXT) instead of .o.
-
-2002-07-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * start/Makefile.am: Eliminate PGMS.
- Add bsplib_DATA = $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o.
-
-2002-07-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * startup/Makefile.am: Add bsplib_DATA = linkcmds linkcmds-le.
-
-2002-07-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Eliminate TMPINSTALL_FILES.
- Remove $(OBJS) from all-local.
-
-2002-06-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * wrapup/Makefile.am: Remove preinstallation of libbsp.a,
-
-2001-05-09 Joel Sherrill <joel@OARcorp.com>
-
- * startup/linkcmds: In support of gcc 3.1, added one of more
- of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*,
- .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections
- and direction of segments to memory regions may also have been
- addressed. This was a sweep across all BSPs.
-
-2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac:
- AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
- AM_INIT_AUTOMAKE([no-define foreign 1.6]).
- * clock/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * Makefile.am: Remove AUTOMAKE_OPTIONS.
- * console/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * include/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * start/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * startup/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * timer/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * tools/Makefile.am: Remove AUTOMAKE_OPTIONS.
- * wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
-
-2001-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Introduce RTEMS_BSP_CONFIGURE.
-
-2001-10-26 Alexandra Kossovsky <sasha@oktet.ru>
-
- * tools: New subdirectory.
- * tools/Makefile.am, tools/runtest: New files.
-
-2001-10-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Added support for START_HW_INIT.
- * console/Makefile.am: Removed VPATH.
- * include/Makefile.am: Added missing ramdisk.h to include_HEADERS.
- * startup/linkcmds: Do not force output format to coff-sh.
- * startup/linkcmds-le: Comment out force of output format and add
- comment questioning need to have special linkcmds for little endian.
- * wrapup/Makefile.am: Add ramdisk to list of BSP_PIECES.
-
-2001-10-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Add bspopts.h; Add CPU_CLOCK_RATE_HZ.
- * startup/bspstart.c: Replace HZ with CPU_CLOCK_RATE_HZ.
- * include/.cvsignore: Add stamp-h* bspopts.h*
- * include/bsp.h: Add bspopts.h.
-
-2001-10-11 Alexandra Kossovsky <sasha@oktet.ru>
-
- * clock/Makefile.am, clock/ckinit.c, clock/.cvsignore, Makefile.am,
- README, bsp_specs, console/Makefile.am, console/console.c,
- console/.cvsignore, include/Makefile.am, include/bsp.h,
- include/coverhd.h, include/syscall.h, include/ramdisk.h,
- include/.cvsignore, start/Makefile.am, start/start.S,
- start/.cvsignore, startup/Makefile.am, startup/bspstart.c,
- startup/hw_init.c, startup/linkcmds, startup/linkcmds-le,
- startup/linkcmds-le.coff, startup/.cvsignore, timer/Makefile.am,
- timer/timer.c, timer/.cvsignore, wrapup/Makefile.am, wrapup/.cvsignore,
- configure.ac, .cvsignore, ChangeLog: New files.
- Reviewed and updated to latest automake and autoconf standards
- by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
-
diff --git a/c/src/lib/libbsp/sh/simsh4/Makefile.am b/c/src/lib/libbsp/sh/simsh4/Makefile.am
deleted file mode 100644
index 959107561a..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/Makefile.am
+++ /dev/null
@@ -1,57 +0,0 @@
-##
-## $Id$
-##
-
-ACLOCAL_AMFLAGS = -I ../../../../aclocal
-
-include $(top_srcdir)/../../../../automake/compile.am
-
-include_bspdir = $(includedir)/bsp
-
-dist_project_lib_DATA = bsp_specs
-
-include_HEADERS = include/bsp.h
-include_HEADERS += include/tm27.h
-
-nodist_include_HEADERS = include/bspopts.h
-nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
-DISTCLEANFILES = include/bspopts.h
-
-SUBDIRS = . tools
-
-# FIXME: This directory is missing
-# ramdisk
-
-include_HEADERS += include/syscall.h
-include_HEADERS += include/ramdisk.h
-include_HEADERS += include/coverhd.h
-
-noinst_LIBRARIES = libbspstart.a
-libbspstart_a_SOURCES = start/start.S
-project_lib_DATA = start.$(OBJEXT)
-
-dist_project_lib_DATA += startup/linkcmds startup/linkcmds-le \
- startup/linkcmds-le.coff
-
-noinst_LIBRARIES += libbsp.a
-libbsp_a_SOURCES =
-
-# startup
-libbsp_a_SOURCES += startup/hw_init.c ../../shared/bsplibc.c \
- ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
- ../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
- ../shared/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
- ../../shared/bootcard.c ../../shared/gnatinstallhandler.c \
- ../shared/bsphwinit.c
-# clock
-libbsp_a_SOURCES += clock/ckinit.c
-# console
-libbsp_a_SOURCES += console/console.c ../../shared/dummy_printk_support.c
-# timer
-libbsp_a_SOURCES += timer/timer.c
-
-libbsp_a_LIBADD = \
- ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score.rel
-
-include $(srcdir)/preinstall.am
-include $(top_srcdir)/../../../../automake/local.am
diff --git a/c/src/lib/libbsp/sh/simsh4/README b/c/src/lib/libbsp/sh/simsh4/README
deleted file mode 100644
index cafb35a700..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/README
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# $Id$
-#
-# Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
-# Author: Victor V. Vengerov <vvv@oktet.ru>
-#
-
-BSP NAME: simsh4 (SH4 BSP working together with gdb simulator)
-BOARD: n/a
-BUS: n/a
-CPU FAMILY: Hitachi SH
-CPU: SH4
-COPROCESSORS: none
-MODE: n/a
-
-DEBUG MONITOR: gdb
-
-PERIPHERALS
-===========
-TIMERS: not supported now
-SERIAL PORTS: implemented using simulator 'trap 34' hook (stdio redir).
-REAL-TIME CLOCK: none
-DMA: not used
-VIDEO: none
-SCSI: none
-NETWORKING: none
-
-DRIVER INFORMATION
-==================
-CLOCK DRIVER: not supported now
-IOSUPP DRIVER: default
-SHMSUPP: default
-TIMER DRIVER: not supported now
-TTY DRIVER: /dev/console
-
-STDIO
-=====
-PORT: n/a
-ELECTRICAL: n/a
-BAUD: n/a
-BITS PER CHARACTER: n/a
-PARITY: n/a
-STOP BITS: n/a
-
-NOTES
-=====
-
diff --git a/c/src/lib/libbsp/sh/simsh4/bsp_specs b/c/src/lib/libbsp/sh/simsh4/bsp_specs
deleted file mode 100644
index 8cf2f894bf..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/bsp_specs
+++ /dev/null
@@ -1,19 +0,0 @@
-%rename lib old_lib
-%rename endfile old_endfile
-%rename startfile old_startfile
-%rename link old_link
-
-
-*lib:
-%{!qrtems: %(old_lib)} \
-%{!nostdlib: %{qrtems: --start-group -lrtemsbsp -lrtemscpu \
- -lc -lgcc --end-group \
- %{!qnolinkcmds: %{ml: -T linkcmds-le%s} %{!ml: -T linkcmds%s}}}}
-
-*startfile:
-%{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: start.o%s}}
-
-*link:
-%(old_link) %{qrtems: -dc -dp -N -e _start}
-
diff --git a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c
deleted file mode 100644
index 17ba8a89e7..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * Clock Driver for SH4 simulator (timer interrupt not supported now).
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * COPYRIGHT (c) 1989-2001.
- * 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 <stdlib.h>
-#include <bsp.h>
-
-extern uint32_t bsp_clicks_per_second;
-
-/*
- * Clock_driver_ticks is a monotonically increasing counter of the
- * number of clock ticks since the driver was initialized.
- */
-volatile uint32_t Clock_driver_ticks;
-
-/*
- * These are set by clock driver during its init
- */
-
-rtems_device_major_number rtems_clock_major = ~0;
-rtems_device_minor_number rtems_clock_minor;
-
-rtems_isr (*rtems_clock_hook)(rtems_vector_number) = NULL;
-
-static void
-set_clock_period(uint32_t period)
-{
- asm volatile ("\tmov %0,r0\n"
- "\ttrapa\t#4\n"
- :
- : "r" (period)
- : "r0" );
-}
-
-/* Clock_isr --
- * This handles the timer interrupt by clearing the timer's interrupt
- * flag and announcing the clock tick to the system.
- *
- * PARAMETERS:
- * vector - timer interrupt vector number
- *
- * RETURNS:
- * none
- */
-rtems_isr
-Clock_isr (rtems_vector_number vector)
-{
- /* Announce the clock tick */
- Clock_driver_ticks++;
- rtems_clock_tick();
-}
-
-/* Clock_exit --
- * This shuts down the timer if it was enabled and removes it
- * from the interrupt mask.
- *
- * PARAMETERS:
- * none
- *
- * RETURNS:
- * none
- */
-void
-Clock_exit(void)
-{
- if (rtems_configuration_get_ticks_per_timeslice())
- {
- /* disable all timer1 interrupts */
- set_clock_period(0);
- }
-}
-
-/* Install_clock --
- * This initialises timer1 with the BSP timeslice config value
- * as a reference and sets up the interrupt handler for clock ticks.
- *
- * PARAMETERS:
- * clock_isr - clock interrupt handler routine
- *
- * RETURNS:
- * none.
- */
-static void
-Install_clock(rtems_isr_entry clock_isr)
-{
- uint32_t period;
-
- Clock_driver_ticks = 0;
- if (rtems_configuration_get_ticks_per_timeslice()) {
- rtems_isr_entry old_isr;
- period = bsp_clicks_per_second / rtems_configuration_get_ticks_per_timeslice();
-
- /* Configure timer interrupts */
- set_clock_period(period);
-
- /* Register the interrupt handler */
- rtems_interrupt_catch(clock_isr, CLOCK_VECTOR, &old_isr);
-
- /* Register the driver exit procedure so we can shutdown */
- atexit(Clock_exit);
- }
-}
-
-/* Clock_initialize --
- * This is called to setup the clock driver. It calls the hardware
- * setup function and make the driver major/minor values available
- * for other.
- *
- * PARAMETERS:
- * major - clock device major number
- * minor - clock device minor number
- * pargp - device driver initialization argument (not used)
- *
- * RETURNS:
- * RTEMS status code
- */
-rtems_device_driver
-Clock_initialize(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp)
-{
- Install_clock (Clock_isr);
-
- /* Make major/minor avail to others such as shared memory driver */
- rtems_clock_major = major;
- rtems_clock_minor = minor;
-
- return RTEMS_SUCCESSFUL;
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/configure.ac b/c/src/lib/libbsp/sh/simsh4/configure.ac
deleted file mode 100644
index a8e3cc4fe3..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/configure.ac
+++ /dev/null
@@ -1,41 +0,0 @@
-## Process this file with autoconf to produce a configure script.
-##
-## $Id$
-
-AC_PREREQ(2.60)
-AC_INIT([rtems-c-src-lib-libbsp-sh-simsh4],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
-AC_CONFIG_SRCDIR([bsp_specs])
-RTEMS_TOP(../../../../../..)
-
-RTEMS_CANONICAL_TARGET_CPU
-AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10])
-RTEMS_BSP_CONFIGURE
-
-RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
-RTEMS_CANONICALIZE_TOOLS
-RTEMS_PROG_CCAS
-
-RTEMS_CONFIG_BUILD_SUBDIRS(tools)
-
-## bsp-specific options
-CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-10000000}
-AC_DEFINE_UNQUOTED(
- [CPU_CLOCK_RATE_HZ],
- [$CPU_CLOCK_RATE_HZ],
- [cpu clock rate in HZ])
-
-# START_HW_INIT
-# This switch selects whether 'early_hw_init()' is called from
-# 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c'
-#
-START_HW_INIT=${START_HW_INIT-1}
-AC_DEFINE_UNQUOTED(
- [START_HW_INIT],
- [$START_HW_INIT],
- [Whether to call early_hw_init from start.S])
-
-BSP_BOOTCARD_OPTIONS
-
-# Explicitly list all Makefiles here
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
diff --git a/c/src/lib/libbsp/sh/simsh4/console/console.c b/c/src/lib/libbsp/sh/simsh4/console/console.c
deleted file mode 100644
index b9d4ddbabf..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/console/console.c
+++ /dev/null
@@ -1,411 +0,0 @@
-/*
- * Raw Console Driver for SH4 simulator
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * COPYRIGHT (c) 1989-2001.
- * 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 <termios.h>
-#include <bsp.h>
-#include <rtems/libio.h>
-#include <syscall.h>
-
-/* Console operations mode:
- * 0 - raw (non-termios) polled input/output
- * 1 - termios-based polled input/output
- * 2 - termios-based interrupt-driven input/output
- */
-#define CONSOLE_MODE_RAW (0)
-#define CONSOLE_MODE_POLL (1)
-#define CONSOLE_MODE_INT (2)
-
-int console_mode = CONSOLE_MODE_RAW;
-
-/* console_poll_read --
- * poll read operation for simulator console through trap 34 mechanism.
- *
- * PARAMETERS:
- * minor - minor device number
- *
- * RETURNS:
- * character code red from UART, or -1 if there is no characters
- * available
- */
-static int
-console_poll_read(int minor)
-{
- unsigned char buf;
- int rc;
- rc = __trap34(SYS_read, 0, &buf, sizeof(buf));
- if (rc != -1)
- return buf;
- else
- return -1;
-}
-
-/* console_interrupt_write --
- * interrupt write operation for simulator console: not supported.
- *
- * PARAMETERS:
- * minor - minor device number
- * buf - output buffer
- * len - output buffer length
- *
- * RETURNS:
- * result code
- */
-static int
-console_interrupt_write(int minor, const char *buf, int len)
-{
- return -1;
-}
-
-/* console_poll_write --
- * wrapper for polling mode write function
- *
- * PARAMETERS:
- * minor - minor device number
- * buf - output buffer
- * len - output buffer length
- *
- * RETURNS:
- * result code (0)
- */
-static int
-console_poll_write(int minor, const char *buf, int len)
-{
- int rc;
- if (minor == 0)
- {
- rc = __trap34(SYS_write, 1, (char *)buf, len);
- return 0;
- }
- return -1;
-}
-
-/* console_set_attributes --
- * wrapper for hardware-dependent termios attributes setting.
- * Null implementation for simulator BSP.
- *
- * PARAMETERS:
- * minor - minor device number
- * t - pointer to the termios structure
- *
- * RETURNS:
- * RTEMS_SUCCESSFUL
- */
-static int
-console_set_attributes(int minor, const struct termios *t)
-{
- return RTEMS_SUCCESSFUL;
-}
-
-/* console_stop_remote_tx --
- * wrapper for stopping data flow from remote party.
- *
- * PARAMETERS:
- * minor - minor device number
- *
- * RETURNS:
- * result code
- */
-static int
-console_stop_remote_tx(int minor)
-{
- if (minor == 0)
- return RTEMS_SUCCESSFUL;
- else
- return RTEMS_INVALID_NUMBER;
-}
-
-/* console_start_remote_tx --
- * wrapper for resuming data flow from remote party.
- *
- * PARAMETERS:
- * minor - minor device number
- *
- */
-static int
-console_start_remote_tx(int minor)
-{
- if (minor == 0)
- return RTEMS_SUCCESSFUL;
- else
- return RTEMS_INVALID_NUMBER;
-}
-
-/* console_first_open --
- * wrapper for UART controller initialization functions
- *
- * PARAMETERS:
- * major - major device number
- * minor - minor device number
- * arg - libio device open argument
- *
- * RETURNS:
- * error code
- */
-static int
-console_first_open(int major, int minor, void *arg)
-{
- if (minor != 0)
- {
- return RTEMS_INVALID_NUMBER; /* Single console supported */
- }
-
- return RTEMS_SUCCESSFUL;
-}
-
-/* console_last_close --
- * wrapper for UART controller close function
- *
- * PARAMETERS:
- * major - major device number
- * minor - minor device number
- * arg - libio device close argument
- *
- * RETURNS:
- * error code
- */
-static int
-console_last_close(int major, int minor, void *arg)
-{
- return RTEMS_SUCCESSFUL;
-}
-
-/* console_initialize --
- * This routine initializes the console IO drivers and register devices
- * in RTEMS I/O system.
- *
- * PARAMETERS:
- * major - major console device number
- * minor - minor console device number (not used)
- * arg - device initialize argument
- *
- * RETURNS:
- * RTEMS error code (RTEMS_SUCCESSFUL if device initialized successfuly)
- */
-rtems_device_driver
-console_initialize(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg)
-{
- rtems_status_code status;
-
- /*
- * Set up TERMIOS
- */
- if (console_mode != CONSOLE_MODE_RAW)
- rtems_termios_initialize ();
-
- /*
- * Register the devices
- */
- status = rtems_io_register_name ("/dev/console", major, 0);
- if (status != RTEMS_SUCCESSFUL)
- rtems_fatal_error_occurred (status);
- status = rtems_io_register_name ("/dev/aux", major, 1);
- if (status != RTEMS_SUCCESSFUL)
- rtems_fatal_error_occurred (status);
-
- return RTEMS_SUCCESSFUL;
-}
-
-/* console_open --
- * Open console device driver. Pass appropriate termios callback
- * functions to termios library.
- *
- * PARAMETERS:
- * major - major device number for console devices
- * minor - minor device number for console
- * arg - device opening argument
- *
- * RETURNS:
- * RTEMS error code
- */
-rtems_device_driver
-console_open(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg)
-{
- static const rtems_termios_callbacks intr_callbacks = {
- console_first_open, /* firstOpen */
- console_last_close, /* lastClose */
- NULL, /* pollRead */
- console_interrupt_write, /* write */
- console_set_attributes, /* setAttributes */
- console_stop_remote_tx, /* stopRemoteTx */
- console_start_remote_tx, /* startRemoteTx */
- 1 /* outputUsesInterrupts */
- };
- static const rtems_termios_callbacks poll_callbacks = {
- console_first_open, /* firstOpen */
- console_last_close, /* lastClose */
- console_poll_read, /* pollRead */
- console_poll_write, /* write */
- console_set_attributes, /* setAttributes */
- console_stop_remote_tx, /* stopRemoteTx */
- console_start_remote_tx, /* startRemoteTx */
- 0 /* outputUsesInterrupts */
- };
-
- switch (console_mode)
- {
- case CONSOLE_MODE_RAW:
- return RTEMS_SUCCESSFUL;
-
- case CONSOLE_MODE_INT:
- return rtems_termios_open(major, minor, arg, &intr_callbacks);
-
- case CONSOLE_MODE_POLL:
- return rtems_termios_open(major, minor, arg, &poll_callbacks);
-
- default:
- rtems_fatal_error_occurred(0xC07A1310);
- }
- return RTEMS_INTERNAL_ERROR;
-}
-
-/* console_close --
- * Close console device.
- *
- * PARAMETERS:
- * major - major device number for console devices
- * minor - minor device number for console
- * arg - device close argument
- *
- * RETURNS:
- * RTEMS error code
- */
-rtems_device_driver
-console_close(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg)
-{
- if (console_mode != CONSOLE_MODE_RAW)
- return rtems_termios_close (arg);
- else
- return RTEMS_SUCCESSFUL;
-}
-
-/* console_read --
- * Read from the console device
- *
- * PARAMETERS:
- * major - major device number for console devices
- * minor - minor device number for console
- * arg - device read argument
- *
- * RETURNS:
- * RTEMS error code
- */
-rtems_device_driver
-console_read(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg)
-{
- if (console_mode != CONSOLE_MODE_RAW)
- {
- return rtems_termios_read (arg);
- }
- else
- {
- rtems_libio_rw_args_t *argp = arg;
- char *buf = argp->buffer;
- int count = argp->count;
- int n = 0;
- int c;
- while (n < count)
- {
- do {
- c = console_poll_read(minor);
- } while (c == -1);
- if (c == '\r')
- c = '\n';
- *(buf++) = c;
- n++;
- if (c == '\n')
- break;
- }
- argp->bytes_moved = n;
- return RTEMS_SUCCESSFUL;
- }
-}
-
-/* console_write --
- * Write to the console device
- *
- * PARAMETERS:
- * major - major device number for console devices
- * minor - minor device number for console
- * arg - device write argument
- *
- * RETURNS:
- * RTEMS error code
- */
-rtems_device_driver
-console_write(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg
-)
-{
- if (console_mode != CONSOLE_MODE_RAW)
- {
- return rtems_termios_write (arg);
- }
- else
- {
- rtems_libio_rw_args_t *argp = arg;
- char cr = '\r';
- char *buf = argp->buffer;
- int count = argp->count;
- int i;
- for (i = 0; i < count; i++)
- {
- if (*buf == '\n')
- console_poll_write(minor, &cr, 1);
- console_poll_write(minor, buf, 1);
- buf++;
- }
- argp->bytes_moved = count;
- return RTEMS_SUCCESSFUL;
- }
-}
-
-/* console_control --
- * Handle console device I/O control (IOCTL)
- *
- * PARAMETERS:
- * major - major device number for console devices
- * minor - minor device number for console
- * arg - device ioctl argument
- *
- * RETURNS:
- * RTEMS error code
- */
-rtems_device_driver
-console_control(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg)
-{
- if (console_mode != CONSOLE_MODE_RAW)
- {
- return rtems_termios_ioctl (arg);
- }
- else
- {
- return RTEMS_SUCCESSFUL;
- }
-
- return RTEMS_SUCCESSFUL;
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/include/.cvsignore b/c/src/lib/libbsp/sh/simsh4/include/.cvsignore
deleted file mode 100644
index d69a044387..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-stamp-h*
-bspopts.h*
diff --git a/c/src/lib/libbsp/sh/simsh4/include/bsp.h b/c/src/lib/libbsp/sh/simsh4/include/bsp.h
deleted file mode 100644
index d9e4a72685..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/bsp.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * This include file contains all board IO definitions.
- *
- * sh4 simulator bsp
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- * Alexandra Kossovsky <sasha@oktet.ru>
- *
- * Based on work:
- * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
- *
- * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- *
- * COPYRIGHT (c) 1998-2001.
- * 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.
- *
- * Minor adaptations for sh2 by:
- * John M. Mills (jmills@tga.com)
- * TGA Technologies, Inc.
- * 100 Pinnacle Way, Suite 140
- * Norcross, GA 30071 U.S.A.
- *
- * This modified file may be copied and distributed in accordance
- * the above-referenced license. It is provided for critique and
- * developmental purposes without any warranty nor representation
- * by the authors or by TGA Technologies.
- *
- * $Id$
- */
-
-#ifndef _BSP_H
-#define _BSP_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <rtems.h>
-#include <rtems/clockdrv.h>
-#include <rtems/console.h>
-#include <ramdisk.h>
-
-#include <bspopts.h>
-
-/*
- * confdefs.h overrides for this BSP:
- * - number of termios serial ports (defaults to 1)
- * - Interrupt stack space is not minimum if defined.
- */
-
-#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
-
-/* !!! Should be defined in accordance to simulator considerations.*/
-#define CLOCK_VECTOR 32
-
-/* Constants */
-
-/*
- * Simple spin delay in microsecond units for device drivers.
- * This is very dependent on the clock speed of the target.
- */
-
-#define delay( microseconds ) CPU_delay(microseconds)
-#define sh_delay( microseconds ) CPU_delay( microseconds )
-
-/*
- * Defined in the linker script 'linkcmds'
- */
-extern void *CPU_Interrupt_stack_low ;
-extern void *CPU_Interrupt_stack_high ;
-
-/*
- * Device Driver Table Entries
- */
-
-#undef CONSOLE_DRIVER_TABLE_ENTRY
-#define CONSOLE_DRIVER_TABLE_ENTRY \
- { console_initialize, console_open, console_close, \
- console_read, console_write, console_control }
-
-#define RAMDISK_DRIVER_TABLE_ENTRY \
- { ramdisk_initialize, ramdisk_open, ramdisk_close, \
- ramdisk_read, ramdisk_write, ramdisk_control }
-
-/*
- * NOTE: Use the standard Clock driver entry
- */
-
-/*
- * Trap interface with simulator
- */
-int __trap34();
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/c/src/lib/libbsp/sh/simsh4/include/coverhd.h b/c/src/lib/libbsp/sh/simsh4/include/coverhd.h
deleted file mode 100644
index 3f7d582efd..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/coverhd.h
+++ /dev/null
@@ -1,120 +0,0 @@
-/* coverhd.h
- *
- * This include file has defines to represent the overhead associated
- * with calling a particular directive from C. These are used in the
- * Timing Test Suite to ignore the overhead required to pass arguments
- * to directives. On some CPUs and/or target boards, this overhead
- * is significant and makes it difficult to distinguish internal
- * RTEMS execution time from that used to call the directive.
- * This file should be updated after running the C overhead timing
- * test. Once this update has been performed, the RTEMS Time Test
- * Suite should be rebuilt to account for these overhead times in the
- * timing results.
- *
- * NOTE: If these are all zero, then the times reported include all
- * all calling overhead including passing of arguments.
- *
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * 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.
- *
- * This file may be copied and distributed in accordance
- * the above-referenced license. It is provided for critique and
- * developmental purposes without any warranty nor representation
- * by the authors or by TGA Technologies.
- *
- * $Id$
- */
-
-#ifndef __COVERHD_h
-#define __COVERHD_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define CALLING_OVERHEAD_INITIALIZE_EXECUTIVE 0
-#define CALLING_OVERHEAD_SHUTDOWN_EXECUTIVE 0
-#define CALLING_OVERHEAD_TASK_CREATE 0
-#define CALLING_OVERHEAD_TASK_IDENT 0
-#define CALLING_OVERHEAD_TASK_START 0
-#define CALLING_OVERHEAD_TASK_RESTART 0
-#define CALLING_OVERHEAD_TASK_DELETE 0
-#define CALLING_OVERHEAD_TASK_SUSPEND 0
-#define CALLING_OVERHEAD_TASK_RESUME 0
-#define CALLING_OVERHEAD_TASK_SET_PRIORITY 0
-#define CALLING_OVERHEAD_TASK_MODE 0
-#define CALLING_OVERHEAD_TASK_GET_NOTE 0
-#define CALLING_OVERHEAD_TASK_SET_NOTE 0
-#define CALLING_OVERHEAD_TASK_WAKE_WHEN 0
-#define CALLING_OVERHEAD_TASK_WAKE_AFTER 0
-#define CALLING_OVERHEAD_INTERRUPT_CATCH 0
-#define CALLING_OVERHEAD_CLOCK_GET 0
-#define CALLING_OVERHEAD_CLOCK_SET 0
-#define CALLING_OVERHEAD_CLOCK_TICK 0
-
-#define CALLING_OVERHEAD_TIMER_CREATE 0
-#define CALLING_OVERHEAD_TIMER_IDENT 0
-#define CALLING_OVERHEAD_TIMER_DELETE 0
-#define CALLING_OVERHEAD_TIMER_FIRE_AFTER 0
-#define CALLING_OVERHEAD_TIMER_FIRE_WHEN 0
-#define CALLING_OVERHEAD_TIMER_RESET 0
-#define CALLING_OVERHEAD_TIMER_CANCEL 0
-#define CALLING_OVERHEAD_SEMAPHORE_CREATE 0
-#define CALLING_OVERHEAD_SEMAPHORE_IDENT 0
-#define CALLING_OVERHEAD_SEMAPHORE_DELETE 0
-#define CALLING_OVERHEAD_SEMAPHORE_OBTAIN 0
-#define CALLING_OVERHEAD_SEMAPHORE_RELEASE 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_CREATE 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_IDENT 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_DELETE 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_SEND 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_URGENT 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_BROADCAST 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_RECEIVE 0
-#define CALLING_OVERHEAD_MESSAGE_QUEUE_FLUSH 0
-
-#define CALLING_OVERHEAD_EVENT_SEND 0
-#define CALLING_OVERHEAD_EVENT_RECEIVE 0
-#define CALLING_OVERHEAD_SIGNAL_CATCH 0
-#define CALLING_OVERHEAD_SIGNAL_SEND 0
-#define CALLING_OVERHEAD_PARTITION_CREATE 0
-#define CALLING_OVERHEAD_PARTITION_IDENT 0
-#define CALLING_OVERHEAD_PARTITION_DELETE 0
-#define CALLING_OVERHEAD_PARTITION_GET_BUFFER 0
-#define CALLING_OVERHEAD_PARTITION_RETURN_BUFFER 0
-#define CALLING_OVERHEAD_REGION_CREATE 0
-#define CALLING_OVERHEAD_REGION_IDENT 0
-#define CALLING_OVERHEAD_REGION_DELETE 0
-#define CALLING_OVERHEAD_REGION_GET_SEGMENT 0
-#define CALLING_OVERHEAD_REGION_RETURN_SEGMENT 0
-#define CALLING_OVERHEAD_PORT_CREATE 0
-#define CALLING_OVERHEAD_PORT_IDENT 0
-#define CALLING_OVERHEAD_PORT_DELETE 0
-#define CALLING_OVERHEAD_PORT_EXTERNAL_TO_INTERNAL 0
-#define CALLING_OVERHEAD_PORT_INTERNAL_TO_EXTERNAL 0
-
-#define CALLING_OVERHEAD_IO_INITIALIZE 0
-#define CALLING_OVERHEAD_IO_OPEN 0
-#define CALLING_OVERHEAD_IO_CLOSE 0
-#define CALLING_OVERHEAD_IO_READ 0
-#define CALLING_OVERHEAD_IO_WRITE 0
-#define CALLING_OVERHEAD_IO_CONTROL 0
-#define CALLING_OVERHEAD_FATAL_ERROR_OCCURRED 0
-#define CALLING_OVERHEAD_RATE_MONOTONIC_CREATE 0
-#define CALLING_OVERHEAD_RATE_MONOTONIC_IDENT 0
-#define CALLING_OVERHEAD_RATE_MONOTONIC_DELETE 0
-#define CALLING_OVERHEAD_RATE_MONOTONIC_CANCEL 0
-#define CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD 0
-#define CALLING_OVERHEAD_MULTIPROCESSING_ANNOUNCE 0
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h b/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h
deleted file mode 100644
index ae332afbe1..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/ramdisk.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* ramdisk.h
- *
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
- *
- *
- * COPYRIGHT (c) 1989-2001.
- * 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$
- */
-
-#ifndef _RAMDISK_DRIVER_h
-#define _RAMDISK_DRIVER_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-rtems_device_driver ramdisk_initialize(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-rtems_device_driver ramdisk_open(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-rtems_device_driver ramdisk_close(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-rtems_device_driver ramdisk_read(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-rtems_device_driver ramdisk_write(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-rtems_device_driver ramdisk_control(rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *arg);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/c/src/lib/libbsp/sh/simsh4/include/syscall.h b/c/src/lib/libbsp/sh/simsh4/include/syscall.h
deleted file mode 100644
index 79fcc07a20..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/syscall.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#define SYS_exit 1
-#define SYS_fork 2
-
-#define SYS_read 3
-#define SYS_write 4
-#define SYS_open 5
-#define SYS_close 6
-#define SYS_wait4 7
-#define SYS_creat 8
-#define SYS_link 9
-#define SYS_unlink 10
-#define SYS_execv 11
-#define SYS_chdir 12
-#define SYS_mknod 14
-#define SYS_chmod 15
-#define SYS_chown 16
-#define SYS_lseek 19
-#define SYS_getpid 20
-#define SYS_isatty 21
-#define SYS_fstat 22
-#define SYS_time 23
-
-#define SYS_ARG 24
-#define SYS_stat 38
-
-#define SYS_pipe 42
-#define SYS_execve 59
-
-#define SYS_utime 201 /* not really a system call */
-#define SYS_wait 202 /* nor is this */
diff --git a/c/src/lib/libbsp/sh/simsh4/include/tm27.h b/c/src/lib/libbsp/sh/simsh4/include/tm27.h
deleted file mode 100644
index 9d8d31f796..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/include/tm27.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * tm27.h
- *
- * 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$
- */
-
-#ifndef _RTEMS_TMTEST27
-#error "This is an RTEMS internal file you must not include directly."
-#endif
-
-#ifndef __tm27_h
-#define __tm27_h
-
-/*
- * Stuff for Time Test 27
- */
-
-#define MUST_WAIT_FOR_INTERRUPT 0
-
-#define Install_tm27_vector( handler ) \
-{ \
- rtems_isr_entry ignored ; \
- rtems_interrupt_catch( (handler), 0, &ignored ) ; \
-}
-
-#define Cause_tm27_intr() /* empty */
-
-#define Clear_tm27_intr() /* empty */
-
-#define Lower_tm27_intr() /* empty */
-
-#endif
diff --git a/c/src/lib/libbsp/sh/simsh4/preinstall.am b/c/src/lib/libbsp/sh/simsh4/preinstall.am
deleted file mode 100644
index bde8fbc4b5..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/preinstall.am
+++ /dev/null
@@ -1,83 +0,0 @@
-## Automatically generated by ampolish3 - Do not edit
-
-if AMPOLISH3
-$(srcdir)/preinstall.am: Makefile.am
- $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
-endif
-
-PREINSTALL_DIRS =
-DISTCLEANFILES += $(PREINSTALL_DIRS)
-
-all-local: $(TMPINSTALL_FILES)
-
-TMPINSTALL_FILES =
-CLEANFILES = $(TMPINSTALL_FILES)
-
-all-am: $(PREINSTALL_FILES)
-
-PREINSTALL_FILES =
-CLEANFILES += $(PREINSTALL_FILES)
-
-$(PROJECT_LIB)/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_LIB)
- @: > $(PROJECT_LIB)/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
-
-$(PROJECT_INCLUDE)/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_INCLUDE)
- @: > $(PROJECT_INCLUDE)/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
-
-$(PROJECT_INCLUDE)/bsp/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp
- @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
-
-$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
-PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
-
-$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
-
-$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
-
-$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
-
-$(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
-
-$(PROJECT_INCLUDE)/syscall.h: include/syscall.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/syscall.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/syscall.h
-
-$(PROJECT_INCLUDE)/ramdisk.h: include/ramdisk.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ramdisk.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/ramdisk.h
-
-$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
-
-$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
-TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
-
-$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
-PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
-
-$(PROJECT_LIB)/linkcmds-le: startup/linkcmds-le $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds-le
-PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds-le
-
-$(PROJECT_LIB)/linkcmds-le.coff: startup/linkcmds-le.coff $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds-le.coff
-PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds-le.coff
-
diff --git a/c/src/lib/libbsp/sh/simsh4/start/start.S b/c/src/lib/libbsp/sh/simsh4/start/start.S
deleted file mode 100644
index 3b7cce61f6..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/start/start.S
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * start.S -- Initialization code for SH4 simulator BSP
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * Based on work:
- * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
- * Bernd Becker (becker@faw.uni-ulm.de)
- *
- * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Modified to reflect Hitachi EDK SH7045F:
- * John M. Mills (jmills@tga.com)
- * TGA Technologies, Inc.
- * 100 Pinnacle Way, Suite 140
- * Norcross, GA 30071 U.S.A.
- *
- *
- * This modified file may be copied and distributed in accordance
- * the above-referenced license. It is provided for critique and
- * developmental purposes without any warranty nor representation
- * by the authors or by TGA Technologies.
- *
- * COPYRIGHT (c) 1999-2001.
- * 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/asm.h>
-#include "rtems/score/sh4_regs.h"
-
- BEGIN_CODE
- PUBLIC(start)
-
-SYM (start):
- ! install the stack pointer
- mov.l stack_k,r15
-
- mov.l initial_sr_k,r0
- ldc r0,ssr
- ldc r0,sr
-
- ! Set up VBR register
- mov.l _vbr_base_k,r0
- ldc r0,vbr
-
-#ifdef START_HW_INIT /* from $RTEMS_BSP.cfg */
- ! Initialize minimal hardware
- mov.l hw_init_k, r0
- jsr @r0
- nop !dead slot
-#endif /* START_HW_INIT */
-
- ! zero out bss
- mov.l edata_k,r0
- mov.l end_k,r1
- mov #0,r2
-0:
- mov.l r2,@r0
- add #4,r0
- cmp/ge r0,r1
- bt 0b
-
- ! initialise fpscr for gcc
- mov.l set_fpscr_k, r1
- jsr @r1
- nop
-
- ! Set FPSCR register
- mov.l initial_fpscr_k,r0
- lds r0,fpscr
-
- ! call the mainline
- mov #0,r4 ! argc
- mov.l main_k,r0
- jsr @r0
- mov #0,r5 ! argv - can place in dead slot
-
- ! call exit
- mov r0,r4
- mov.l exit_k,r0
- jsr @r0
- or r0,r0
-
- ! stop the simulator
- trapa #2
- nop
-
- .global ___trap34
-___trap34:
- trapa #34
-! tst r1,r1 ! r1 is errno
-! bt ret
-! mov.l perrno,r2
-! mov.l r1,@r2
-!ret:
- rts
- nop
-
-! .align 2
-!perrno:
-! .long _errno
-
- END_CODE
-
- .align 2
-set_fpscr_k:
- .long ___set_fpscr
-_vbr_base_k:
- .long SYM(_vbr_base)
-
-stack_k:
- .long SYM(stack)
-edata_k:
- .long SYM(edata)
-end_k:
- .long SYM(end)
-main_k:
- .long SYM(boot_card)
-exit_k:
- .long SYM(exit)
-
-#ifdef START_HW_INIT /* from $RTEMS_BSP.cfg */
-hw_init_k:
- .long SYM(early_hw_init)
-#endif /* START_HW_INIT */
-
-vects_k:
- .long SYM(vectab)
-vects_size:
- .word 255
-
- .align 2
-initial_sr_k:
- .long SH4_SR_MD | SH4_SR_RB | SH4_SR_IMASK
-initial_fpscr_k:
-#ifdef __SH4__
- .long SH4_FPSCR_DN | SH4_FPSCR_PR | SH4_FPSCR_RM
-#else
- .long SH4_FPSCR_DN | SH4_FPSCR_RM
-#endif
-
-#ifdef __ELF__
- .section .stack,"aw"
-#else
- .section .stack
-#endif
-SYM(stack):
- .long 0xdeaddead
-
-#ifdef __ELF__
- .section .bss,"aw"
-#else
- .section .bss
-#endif
-
- .global __sh4sim_dummy_register
-__sh4sim_dummy_register:
- .long 0
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c b/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c
deleted file mode 100644
index b06243086f..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * hw_init.c - initialize hardware resources for simulator.
- * Currently there are no models of hardware resources which should be
- * initialized here; it is just a stub.
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- *
- * 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>
-
-#include <stdlib.h>
-
-#include <rtems/libio.h>
-#include <rtems/iosupp.h>
-
-/* exported entries */
-extern void bsp_hw_init (void);
-extern void early_hw_init (void);
-
-/* early_hw_init --
- * Hardware initialization called from 'start.S' on "#ifdef START_HW_INIT"
- *
- * ARGUMENTS:
- * none
- *
- * RETURNS:
- * none
- */
-void
-early_hw_init (void)
-{
-}
-
-/* bsp_hw_init --
- * Part of hardware initialization called from bspstart.c
- *
- * ARGUMENTS:
- * none
- *
- * RETURNS:
- * none
- */
-void bsp_hw_init (void)
-{
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
deleted file mode 100644
index 73e7077d1c..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
- * Memory layout for SH4 GNU simulator.
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- *
- * COPYRIGHT (c) 1998-2001.
- * 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$
- */
-
-/*
-OUTPUT_FORMAT("coff-sh")
- */
-OUTPUT_ARCH(sh)
-ENTRY(_start)
-
-/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
-
-_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
-_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
-
-MEMORY
-{
- ram : o = 0x00000000, l = 0x01000000
-}
-
-/* Sections are defined for RAM loading and monitor debugging */
-SECTIONS
-{
-
- /* Read-only sections, merged into text segment: */
-
- . = 0x00004000 ;
- .interp : { *(.interp) }
- .hash : { *(.hash) }
- .dynsym : { *(.dynsym) }
- .dynstr : { *(.dynstr) }
- .gnu.version : { *(.gnu.version) }
- .gnu.version_d : { *(.gnu.version_d) }
- .gnu.version_r : { *(.gnu.version_r) }
- .rela.dyn :
- {
- *(.rela.init)
- *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
- *(.rela.fini)
- *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
- *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
- *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
- *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
- *(.rela.ctors)
- *(.rela.dtors)
- *(.rela.got)
- *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
- *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
- *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
- *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
- *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
- } >ram
- .rel.text :
- { *(.rel.text) *(.rel.gnu.linkonce.t*) }
- .rel.data :
- { *(.rel.data) *(.rel.gnu.linkonce.d*) }
- .rel.rodata :
- { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
- .rel.got : { *(.rel.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rel.init : { *(.rel.init) }
- .rel.fini : { *(.rel.fini) }
- .rel.bss : { *(.rel.bss) }
- .rel.plt : { *(.rel.plt) }
- .init : { *(.init) } =0
- .plt : { *(.plt) }
- .text . :
- {
- _start = .;
- *(.text*)
- *(.stub)
-
- /*
- * Special FreeBSD sysctl sections.
- */
- . = ALIGN (16);
- ___start_set_sysctl_set = .;
- *(set_sysc*); /* set_sysctl_* but name is truncated by SH-coff */
- ___stop_set_sysctl_set = ABSOLUTE(.);
- *(set_doma*); /* set_domain_* but name is truncated by SH-coff */
- *(set_pseu*); /* set_pseudo_* but name is truncated by SH-coff */
-
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t*)
- } > ram
- _etext = .;
- PROVIDE (etext = .);
- .fini . : { *(.fini) } =0
- .rodata . : { *(.rodata*) *(.gnu.linkonce.r*) }
- .rodata1 . : { *(.rodata1) }
- /* Adjust the address for the data segment. We want to adjust up to
- the same address within the page on the next page up. */
- . = ALIGN(128) + (. & (128 - 1));
- .data . :
- {
- *(.data*)
- *(.gcc_exc*)
- ___EH_FRAME_BEGIN__ = .;
- *(.eh_fram*)
- ___EH_FRAME_END__ = .;
- LONG(0);
- *(.gcc_except_table*)
- *(.gnu.linkonce.d*)
- CONSTRUCTORS
- } > ram
- .data1 . : { *(.data1) }
- .ctors . :
- {
- ___ctors = .;
- *(.ctors)
- ___ctors_end = .;
- }
- .dtors . :
- {
- ___dtors = .;
- *(.dtors)
- ___dtors_end = .;
- }
- .got . : { *(.got.plt) *(.got) }
- .dynamic . : { *(.dynamic) }
- /* We want the small data sections together, so single-instruction offsets
- can access them all, and initialized data all before uninitialized, so
- we can shorten the on-disk segment size. */
- .sdata . : { *(.sdata) }
- _edata = .;
- PROVIDE (edata = .);
- __bss_start = .;
- .sbss . : { *(.sbss*) *(.scommon) }
- .bss . :
- {
- *(.dynbss)
- *(.bss .bss* .gnu.linkonce.b*)
- *(COMMON)
- } > ram
- _end = . ;
- PROVIDE (end = .);
-
- . = ALIGN(16);
- .stack . : {
- . = . + 4096;
- }
-
- . = ALIGN(16);
- _WorkAreaBase = . ;
-
- . = ALIGN(16);
- _CPU_Interrupt_stack_low = . ;
- _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
-
- /* Stabs debugging sections. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- .stab.excl 0 : { *(.stab.excl) }
- .stab.exclstr 0 : { *(.stab.exclstr) }
- .stab.index 0 : { *(.stab.index) }
- .stab.indexstr 0 : { *(.stab.indexstr) }
- .comment 0 : { *(.comment) }
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0. */
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
-
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le
deleted file mode 100644
index d23f8a2eff..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le
+++ /dev/null
@@ -1,245 +0,0 @@
-/*
-FIXME: Why is a special linkcmds required for little endian?
- OUTPUT_FORMAT("elf32-shl", "elf32-shl",
- "elf32-shl")
- */
-OUTPUT_ARCH(sh)
-ENTRY(_start)
-/* Do we need any of these for elf?
- __DYNAMIC = 0; */
-
-_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
-_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
-
-MEMORY
-{
- ram : o = 0x00000000, l = 0x01000000
-}
-
-SECTIONS
-{
- /* Read-only sections, merged into text segment: */
- /* . = 0x1000; */
- . = 0x00004000 ;
- .interp : { *(.interp) }
- .hash : { *(.hash) }
- .dynsym : { *(.dynsym) }
- .dynstr : { *(.dynstr) }
- .gnu.version : { *(.gnu.version) }
- .gnu.version_d : { *(.gnu.version_d) }
- .gnu.version_r : { *(.gnu.version_r) }
- .rel.init : { *(.rel.init) }
- .rela.dyn :
- {
- *(.rela.init)
- *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
- *(.rela.fini)
- *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
- *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
- *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
- *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
- *(.rela.ctors)
- *(.rela.dtors)
- *(.rela.got)
- *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
- *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
- *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
- *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
- *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
- } >ram
- .rel.text :
- {
- *(.rel.text)
- *(.rel.text.*)
- *(.rel.gnu.linkonce.t*)
- }
- .rel.fini : { *(.rel.fini) }
- .rel.rodata :
- {
- *(.rel.rodata)
- *(.rel.rodata.*)
- *(.rel.gnu.linkonce.r*)
- }
- .rel.data :
- {
- *(.rel.data)
- *(.rel.data.*)
- *(.rel.gnu.linkonce.d*)
- }
- .rel.ctors : { *(.rel.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rel.got : { *(.rel.got) }
- .rel.sdata :
- {
- *(.rel.sdata)
- *(.rel.sdata.*)
- *(.rel.gnu.linkonce.s*)
- }
- .rel.sbss : { *(.rel.sbss) }
- .rel.bss : { *(.rel.bss) }
- .rel.plt : { *(.rel.plt) }
- .init :
- {
- KEEP (*(.init))
- } =0
- .plt : { *(.plt) }
- .text :
- {
- . = . + 16;
- _start = .;
- *(.text*)
- *(.stub)
-
- /*
- * Special FreeBSD sysctl sections.
- */
- . = ALIGN (16);
- ___start_set_sysctl_set = .;
- *(set_sysc*); /* set_sysctl_* but name is truncated by SH-coff */
- ___stop_set_sysctl_set = ABSOLUTE(.);
- *(set_doma*); /* set_domain_* but name is truncated by SH-coff */
- *(set_pseudo_*);
-
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t*)
- } > ram
- _etext = .;
- PROVIDE (etext = .);
- .fini :
- {
- KEEP (*(.fini))
- } > ram
- .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) } > ram
- .rodata1 : { *(.rodata1) } > ram
- /* Adjust the address for the data segment. We want to adjust up to
- the same address within the page on the next page up. */
- . = ALIGN(128) + (. & (128 - 1));
- .data :
- {
- *(.data)
- *(.data.*)
- *(.gcc_exc)
- ___EH_FRAME_BEGIN__ = .;
- *(.eh_fram*)
- ___EH_FRAME_END__ = .;
- LONG(0);
- *(.gcc_except_table*)
- *(.gnu.linkonce.d*)
- SORT(CONSTRUCTORS)
- } > ram
- .data1 : { *(.data1) } > ram
- .ctors :
- {
- ___ctors = .;
- /* gcc uses crtbegin.o to find the start of
- the constructors, so we make sure it is
- first. Because this is a wildcard, it
- doesn't matter if the user does not
- actually link against crtbegin.o; the
- linker won't look for a file to match a
- wildcard. The wildcard also means that it
- doesn't matter which directory crtbegin.o
- is in. */
- KEEP (*crtbegin.o(.ctors))
- /* We don't want to include the .ctor section from
- from the crtend.o file until after the sorted ctors.
- The .ctor section from the crtend file contains the
- end of ctors marker and it must be last */
- KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
- KEEP (*(SORT(.ctors.*)))
- KEEP (*(.ctors))
- ___ctors_end = .;
- } > ram
- .dtors :
- {
- ___dtors = .;
- KEEP (*crtbegin.o(.dtors))
- KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
- KEEP (*(SORT(.dtors.*)))
- KEEP (*(.dtors))
- ___dtors_end = .;
- } > ram
- .got : { *(.got.plt) *(.got) }
- .dynamic : { *(.dynamic) }
- /* We want the small data sections together, so single-instruction offsets
- can access them all, and initialized data all before uninitialized, so
- we can shorten the on-disk segment size. */
- .sdata :
- {
- *(.sdata)
- *(.sdata.*)
- *(.gnu.linkonce.s.*)
- } > ram
- _edata = .;
- PROVIDE (edata = .);
- __bss_start = .;
- .sbss :
- {
- *(.dynsbss)
- *(.sbss*)
- *(.scommon)
- } > ram
- .bss :
- {
- *(.dynbss)
- *(.bss .bss* .gnu.linkonce.b*)
- *(COMMON)
- /* Align here to ensure that the .bss section occupies space up to
- _end. Align after .bss to ensure correct alignment even if the
- .bss section disappears because there are no input sections. */
- . = ALIGN(32 / 8);
- } > ram
- . = ALIGN(32 / 8);
- _end = .;
- PROVIDE (end = .);
-
- . = ALIGN(16);
- .stack . : {
- . = . + 4096;
- }
-
- . = ALIGN(16);
- _WorkAreaBase = . ;
-
- . = ALIGN(16);
- _CPU_Interrupt_stack_low = . ;
- _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
-
- /* Stabs debugging sections. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- .stab.excl 0 : { *(.stab.excl) }
- .stab.exclstr 0 : { *(.stab.exclstr) }
- .stab.index 0 : { *(.stab.index) }
- .stab.indexstr 0 : { *(.stab.indexstr) }
- .comment 0 : { *(.comment) }
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0. */
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
- .stack 0x30000 : { _stack = .; *(.stack) }
- /* These must appear regardless of . */
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff b/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
deleted file mode 100644
index b58b6fc65b..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/startup/linkcmds-le.coff
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * Memory layout for SH4 GNU simulator.
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- *
- * COPYRIGHT (c) 1998-2001.
- * 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$
- */
-
-/* OUTPUT_FORMAT("coff-shl") */
-OUTPUT_FORMAT("elf32-shl")
-OUTPUT_ARCH(sh)
-ENTRY(_start)
-
-/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
-
-_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
-_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
-
-MEMORY
-{
- ram : o = 0x00000000, l = 0x01000000
-}
-
-/* Sections are defined for RAM loading and monitor debugging */
-SECTIONS
-{
-
- /* Read-only sections, merged into text segment: */
-
- . = 0x00004000 ;
- .interp : { *(.interp) }
- .hash : { *(.hash) }
- .dynsym : { *(.dynsym) }
- .dynstr : { *(.dynstr) }
- .gnu.version : { *(.gnu.version) }
- .gnu.version_d : { *(.gnu.version_d) }
- .gnu.version_r : { *(.gnu.version_r) }
- .rela.dyn :
- {
- *(.rela.init)
- *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
- *(.rela.fini)
- *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
- *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
- *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
- *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
- *(.rela.ctors)
- *(.rela.dtors)
- *(.rela.got)
- *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
- *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
- *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
- *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
- *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
- } >ram
- .rel.text :
- { *(.rel.text) *(.rel.gnu.linkonce.t*) }
- .rel.data :
- { *(.rel.data) *(.rel.gnu.linkonce.d*) }
- .rel.rodata :
- { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
- .rel.got : { *(.rel.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rel.init : { *(.rel.init) }
- .rel.fini : { *(.rel.fini) }
- .rel.bss : { *(.rel.bss) }
- .rel.plt : { *(.rel.plt) }
- .init : { *(.init) } =0
- .plt : { *(.plt) }
- .text . :
- {
- _start = .;
- *(.text*)
- *(.stub)
-
- /*
- * Special FreeBSD sysctl sections.
- */
- . = ALIGN (16);
- ___start_set_sysctl_set = .;
- *(set_sysc*); /* set_sysctl_* but name is truncated by SH-coff */
- ___stop_set_sysctl_set = ABSOLUTE(.);
- *(set_doma*); /* set_domain_* but name is truncated by SH-coff */
- *(set_pseudo_*);
-
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t*)
- } > ram
- _etext = .;
- PROVIDE (etext = .);
- .fini . : { *(.fini) } =0
- .rodata . : { *(.rodata) *(.gnu.linkonce.r*) }
- .rodata1 . : { *(.rodata1) }
- /* Adjust the address for the data segment. We want to adjust up to
- the same address within the page on the next page up. */
- . = ALIGN(128) + (. & (128 - 1));
- .data . :
- {
- *(.data)
- *(.gcc_exc)
- ___EH_FRAME_BEGIN__ = .;
- *(.eh_fram*)
- ___EH_FRAME_END__ = .;
- LONG(0);
- *(.gcc_except_table*)
- *(.gnu.linkonce.d*)
- CONSTRUCTORS
- } > ram
- .data1 . : { *(.data1) }
- .ctors . :
- {
- ___ctors = .;
- *(.ctors)
- ___ctors_end = .;
- }
- .dtors . :
- {
- ___dtors = .;
- *(.dtors)
- ___dtors_end = .;
- }
- .got . : { *(.got.plt) *(.got) }
- .dynamic . : { *(.dynamic) }
- /* We want the small data sections together, so single-instruction offsets
- can access them all, and initialized data all before uninitialized, so
- we can shorten the on-disk segment size. */
- .sdata . : { *(.sdata) }
- _edata = .;
- PROVIDE (edata = .);
- __bss_start = .;
- .sbss . : { *(.sbss*) *(.scommon) }
- .bss . :
- {
- *(.dynbss)
- *(.bss .bss* .gnu.linkonce.b*)
- *(COMMON)
- } > ram
- _end = . ;
- PROVIDE (end = .);
-
- . = ALIGN(16);
- .stack . : {
- . = . + 4096;
- }
- . = ALIGN(16);
- _WorkAreaBase = . ;
-
- . = ALIGN(16);
- _CPU_Interrupt_stack_low = . ;
- _CPU_Interrupt_stack_high = _CPU_Interrupt_stack_low + 4096 ;
-
- /* Stabs debugging sections. */
- .stab 0 : { *(.stab) }
- .stabstr 0 : { *(.stabstr) }
- .stab.excl 0 : { *(.stab.excl) }
- .stab.exclstr 0 : { *(.stab.exclstr) }
- .stab.index 0 : { *(.stab.index) }
- .stab.indexstr 0 : { *(.stab.indexstr) }
- .comment 0 : { *(.comment) }
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0. */
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
-
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/timer/timer.c b/c/src/lib/libbsp/sh/simsh4/timer/timer.c
deleted file mode 100644
index c5b50138c5..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/timer/timer.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Timer Init
- *
- * This module implements benchmark stub for simulator.
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Author: Victor V. Vengerov <vvv@oktet.ru>
- *
- * COPYRIGHT (c) 1989-1998-2001.
- * 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>
-
-uint32_t Timer_interrupts;
-
-bool benchmark_timer_find_average_overhead;
-
-/* External assembler interrupt handler routine */
-extern rtems_isr timerisr(rtems_vector_number vector);
-
-/* benchmark_timer_initialize --
- * Initialize timer 2 for accurate time measurement.
- *
- * PARAMETERS:
- * none
- *
- * RETURNS:
- * none
- */
-void
-benchmark_timer_initialize(void)
-{
- return;
-}
-
-/*
- * The following controls the behavior of benchmark_timer_read().
- *
- * FIND_AVG_OVERHEAD * instructs the routine to return the "raw" count.
- *
- * AVG_OVEREHAD is the overhead for starting and stopping the timer. It
- * is usually deducted from the number returned.
- *
- * LEAST_VALID is the lowest number this routine should trust. Numbers
- * below this are "noise" and zero is returned.
- */
-
-#define AVG_OVERHEAD 0 /* It typically takes 2.0 microseconds */
- /* (Y countdowns) to start/stop the timer. */
- /* This value is in microseconds. */
-#define LEAST_VALID 1 /* Don't trust a clicks value lower than this */
-
-/* benchmark_timer_read --
- * Read timer value in microsecond units since timer start.
- *
- * PARAMETERS:
- * none
- *
- * RETURNS:
- * number of microseconds since timer has been started
- */
-int
-benchmark_timer_read( void )
-{
- return 0;
-}
-
-/* benchmark_timer_disable_subtracting_average_overhead --
- * This routine is invoked by the "Check Timer" (tmck) test in the
- * RTEMS Timing Test Suite. It makes the benchmark_timer_read routine not
- * subtract the overhead required to initialize and read the benchmark
- * timer.
- *
- * PARAMETERS:
- * find_flag - boolean flag, TRUE if overhead must not be subtracted.
- *
- * RETURNS:
- * none
- */
-void
-benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
-{
- benchmark_timer_find_average_overhead = find_flag;
-}
diff --git a/c/src/lib/libbsp/sh/simsh4/tools/.cvsignore b/c/src/lib/libbsp/sh/simsh4/tools/.cvsignore
deleted file mode 100644
index 074184bf59..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/tools/.cvsignore
+++ /dev/null
@@ -1,9 +0,0 @@
-aclocal.m4
-autom4te*.cache
-config.cache
-config.log
-config.status
-configure
-Makefile
-Makefile.in
-runtest
diff --git a/c/src/lib/libbsp/sh/simsh4/tools/ChangeLog b/c/src/lib/libbsp/sh/simsh4/tools/ChangeLog
deleted file mode 100644
index 78aa34bf20..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/tools/ChangeLog
+++ /dev/null
@@ -1,52 +0,0 @@
-2008-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
-
- * runtest.in: Skip all fatal error tests.
-
-2007-09-04 Joel Sherrill <joel.sherrill@OARcorp.com>
-
- * runtest.in: Add capture to list of interative tests to skip in batch
- mode.
-
-2007-01-26 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * Makefile.am: Use MKDIR_P instead of mkdir_p.
-
-2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * configure.ac: New BUG-REPORT address.
-
-2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
-
- * configure.ac: Require autoconf-2.60. Require automake-1.10.
-
-2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
-
- * configure.ac: Require automake > 1.9.
-
-2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
- Add PRE/TMPINSTALL_FILES to CLEANFILES.
-
-2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Reworked.
-
-2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * configure.ac: Require automake >= 1.8, autoconf >= 2.59.
-
-2003-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * Makefile.am: Misc cleanups and fixes.
- * configure.ac: Require automake 1.7.2.
-
-2003-08-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
-
- * ChangeLog: New.
- * .cvsignore: New.
- * configure.ac: New.
- * runtest: Removed.
- * runtest.in: New (Copied from runtest).
- * Makefile.am: Reflect changes above.
- Use @RTEMS_BSP@ instead of simsh4.
diff --git a/c/src/lib/libbsp/sh/simsh4/tools/Makefile.am b/c/src/lib/libbsp/sh/simsh4/tools/Makefile.am
deleted file mode 100644
index 0a5f8b2d7b..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/tools/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-##
-## $Id$
-##
-
-ACLOCAL_AMFLAGS = -I ../../../../../aclocal
-
-transform =
-bsptools_bindir = ${exec_prefix}/@RTEMS_BSP@/tests
-bsptools_bin_SCRIPTS = runtest
-
-all-local: $(TMPINSTALL_FILES)
-
-TMPINSTALL_FILES =
-
-$(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_ROOT)/@RTEMS_BSP@/tests
- @: > $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
-TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
-
-$(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest: runtest $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
- $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
-TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
-
-CLEANFILES = $(TMPINSTALL_FILES)
-
-include $(top_srcdir)/../../../../../automake/host.am
diff --git a/c/src/lib/libbsp/sh/simsh4/tools/configure.ac b/c/src/lib/libbsp/sh/simsh4/tools/configure.ac
deleted file mode 100644
index 873c2c115c..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/tools/configure.ac
+++ /dev/null
@@ -1,24 +0,0 @@
-## Process this file with autoconf to produce a configure script.
-##
-## $Id$
-
-AC_PREREQ(2.60)
-AC_INIT([rtems-c-src-lib-libbsp-sh-simsh4-tools],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
-AC_CONFIG_SRCDIR([runtest.in])
-RTEMS_TOP(../../../../../../..)
-
-# FIXME: This should not be here
-AC_ARG_VAR([RTEMS_BSP],[])
-RTEMS_CANONICAL_TARGET_CPU
-
-AM_INIT_AUTOMAKE([no-define foreign 1.10])
-AM_MAINTAINER_MODE
-
-RTEMS_PROJECT_ROOT
-RTEMS_TOOLPATHS
-
-# Explicitly list all Makefiles here
-AC_CONFIG_FILES([Makefile
-runtest
-])
-AC_OUTPUT
diff --git a/c/src/lib/libbsp/sh/simsh4/tools/runtest.in b/c/src/lib/libbsp/sh/simsh4/tools/runtest.in
deleted file mode 100644
index 66897d5d1e..0000000000
--- a/c/src/lib/libbsp/sh/simsh4/tools/runtest.in
+++ /dev/null
@@ -1,231 +0,0 @@
-#!@KSH@ -p
-#
-# Run rtems tests on the Motorola MCF5206eLITE Coldfire Evaluation board
-# using gdb configured with P&E Micro Background Debug Mode debugging
-# interface.
-#
-# This program generates a gdb script to run each test, intercept
-# serial port output and put log into output file.
-#
-# Author: Victor V. Vengerov <vvv@oktet.ru>
-# Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
-#
-# Partially based on runtest script for powerpc psim.
-#
-# COPYRIGHT (c) 1989-1999.
-# On-Line Applications Research Corporation (OAR).
-#
-# The license and distribution terms for this file may be
-# found in found in the file LICENSE in this distribution or at
-# http://www.rtems.com/license/LICENSE.
-#
-# @(#) $Id$
-#
-
-# progname=`basename $0`
-progname=${0##*/} # fast basename hack for ksh, bash
-
-USAGE=\
-"usage: $progname [ -opts ] test [ test ... ]
- -r runname -- specify name of run program to be used
- -v -- verbose output
- -d -- don't remove temporary files (for debugging only)
- -l logdir -- specify log directory (default is 'logdir')
-
- Specify test as 'test' or 'test.exe'.
- All multiprocessing tests *must* be specified simply as 'mp01', etc.
-"
-
-# export everything
-set -a
-
-# log an error to stderr
-prerr()
-{
- echo "$*" >&2
-}
-
-fatal() {
- [ "$1" ] && prerr $*
- prerr "$USAGE"
- exit 1
-}
-
-warn() {
- [ "$1" ] && prerr $*
-}
-
-# run at normal and signalled exit
-test_exit()
-{
- exit_code=$1
-
- rm -f ${logfile}.tmp*
- [ "$run_pid" ] && kill -9 $run_pid
-
- exit $exit_code
-}
-
-#
-# process the options
-#
-# defaults for getopt vars
-#
-# max_run_time is defaulted to 5 minutes
-#
-
-verbose=""
-runprog=sh-rtemself-run
-logdir=log
-max_run_time=$((10 * 60))
-#sizeof_ram=$((1 * 1024 * 1024))
-debugging="no"
-#console_mode=0
-
-while getopts vdips:r:b:l: OPT
-do
- case "$OPT" in
- v)
- verbose="yes";;
- d)
- debugging="yes";;
- l)
- logdir="$OPTARG";;
- r)
- runprog="$OPTARG";;
-# p)
-# console_mode=1;;
-# i)
-# console_mode=2;;
- *)
- fatal;;
- esac
-done
-
-let $((shiftcount = $OPTIND - 1))
-shift $shiftcount
-
-args=$*
-
-#
-# Run the tests
-#
-
-tests="$args"
-if [ ! "$tests" ]
-then
- set -- `echo *.exe`
- tests="$*"
-fi
-
-[ -d $logdir ] ||
- mkdir $logdir || fatal "could not create log directory ($logdir)"
-
-# where the tmp files go
-trap "test_exit" 1 2 3 13 14 15
-
-for tfile in $tests
-do
-
- tname=`basename $tfile .exe`
- cpus="1"
- TEST_TYPE="single"
-
- case "$tname" in
- # size is no longer interactive.
- capture* | monitor* | termios* | fileio* | pppd*)
- warn "Skipping $tname; it is interactive"
- continue
- ;;
- *-node2*)
- warn "Skipping $tname; 'runtest' runs both nodes when for *-node1"
- continue
- ;;
- *-node1*)
- warn "Running both nodes associated with $tname"
- tname=`echo $tname | sed 's/-node.*//'`
- TEST_TYPE="mp"
- ;;
- minimum*|stackchk*|*fatal*|termio*)
- continue
- ;;
- esac
-
- if [ "$TEST_TYPE" = "mp" ] ; then
- fatal "MP tests not supported for this board"
- fi
-
- if [ $TEST_TYPE = "single" ] ; then
- logfile=$logdir/${tname}
- infofile=${logfile}.info
-# scriptfile=${logfile}.ss
-# runlogfile=${logfile}.run
-
- rm -f ${logfile}.tmp*
-
- date=`date`
- echo "Starting $tname at $date"
-
- ${runprog} "${tfile}" > "${logfile}" 2>&1 &
- run_pid=$!
- {
- time_run=0
- while [ $time_run -lt $max_run_time ] ; do
- sleep 10s
- if kill -0 $run_pid 2> /dev/null ; then
- time_run=$((time_run+10)) ;
- else
- exit 0
- fi
- done
- kill -2 $run_pid 2> /dev/null
- {
- sleep 5s ;
- if kill -0 $run_pid 2> /dev/null ; then
- kill -9 $run_pid 2> /dev/null ;
- fi
- } &
- } &
- wait $run_pid
- run_status=$?
- if [ $run_status -ge 128 ] ; then
- ran_too_long="yes" ;
- else
- ran_too_long="no"
- fi
- if [ $run_status -ne 0 ] ; then
- test_failed="yes" ;
- else
- test_failed="no"
- fi
- run_pid=""
- fi
-
- # Create the info files
- {
- echo "$date"
- echo "Test run on: `uname -n`"
- echo "Host Information:"
- echo `uname -a`
- echo
- echo "run: `type -path ${runprog}`"
-
- cat ${logfile}
-
- if [ "$test_failed" = "yes" ] ; then
- echo -e "\\n\\nTest did not finish normally"
- if [ "$ran_too_long" = "yes" ] ; then
- echo "Test killed after $max_run_time seconds"
- fi
- fi
-
- echo
- date;
- } > ${infofile}
-# if [ "${debugging}" = "no" ] ; then
-# rm -f ${runlogfile}
-# fi
-done
-
-echo "Tests completed at " `date`
-test_exit 0