From 87a04019fb626d90af690e6a9e985951ed9f4673 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 14 Oct 2009 12:17:42 +0000 Subject: Remove (Abandoned). --- c/src/lib/libbsp/unix/.cvsignore | 8 - c/src/lib/libbsp/unix/ChangeLog | 106 ----- c/src/lib/libbsp/unix/Makefile.am | 11 - c/src/lib/libbsp/unix/acinclude.m4 | 10 - c/src/lib/libbsp/unix/configure.ac | 21 - c/src/lib/libbsp/unix/posix/.cvsignore | 8 - c/src/lib/libbsp/unix/posix/ChangeLog | 525 --------------------- c/src/lib/libbsp/unix/posix/Makefile.am | 54 --- c/src/lib/libbsp/unix/posix/README | 18 - c/src/lib/libbsp/unix/posix/bsp_specs | 8 - c/src/lib/libbsp/unix/posix/clock/clock.c | 78 --- c/src/lib/libbsp/unix/posix/configure.ac | 42 -- c/src/lib/libbsp/unix/posix/console/console-io.c | 21 - c/src/lib/libbsp/unix/posix/console/console.c | 94 ---- c/src/lib/libbsp/unix/posix/include/.cvsignore | 5 - c/src/lib/libbsp/unix/posix/include/bsp.h | 38 -- c/src/lib/libbsp/unix/posix/include/tm27.h | 35 -- c/src/lib/libbsp/unix/posix/preinstall.am | 54 --- c/src/lib/libbsp/unix/posix/shmsupp/README | 9 - c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c | 29 -- c/src/lib/libbsp/unix/posix/shmsupp/cause_intr.c | 33 -- c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c | 74 --- c/src/lib/libbsp/unix/posix/shmsupp/lock.c | 71 --- c/src/lib/libbsp/unix/posix/shmsupp/mpisr.c | 31 -- c/src/lib/libbsp/unix/posix/startup/bspclean.c | 40 -- .../lib/libbsp/unix/posix/startup/bspgetworkarea.c | 37 -- c/src/lib/libbsp/unix/posix/startup/bsppost.c | 22 - c/src/lib/libbsp/unix/posix/startup/bspstart.c | 72 --- c/src/lib/libbsp/unix/posix/startup/exit.c | 26 - c/src/lib/libbsp/unix/posix/startup/main.c | 30 -- c/src/lib/libbsp/unix/posix/startup/no-ctor.c | 16 - c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc | 121 ----- c/src/lib/libbsp/unix/posix/timer/timer.c | 65 --- c/src/lib/libbsp/unix/posix/times | 10 - c/src/lib/libbsp/unix/posix/tools/.cvsignore | 12 - c/src/lib/libbsp/unix/posix/tools/ChangeLog | 118 ----- c/src/lib/libbsp/unix/posix/tools/Makefile.am | 45 -- c/src/lib/libbsp/unix/posix/tools/configure.ac | 31 -- c/src/lib/libbsp/unix/posix/tools/looptest.in | 93 ---- c/src/lib/libbsp/unix/posix/tools/runtest.in | 255 ---------- c/src/lib/libbsp/unix/posix/tools/semdump.in | 59 --- c/src/lib/libbsp/unix/posix/tools/shmdump.in | 134 ------ 42 files changed, 2569 deletions(-) delete mode 100644 c/src/lib/libbsp/unix/.cvsignore delete mode 100644 c/src/lib/libbsp/unix/ChangeLog delete mode 100644 c/src/lib/libbsp/unix/Makefile.am delete mode 100644 c/src/lib/libbsp/unix/acinclude.m4 delete mode 100644 c/src/lib/libbsp/unix/configure.ac delete mode 100644 c/src/lib/libbsp/unix/posix/.cvsignore delete mode 100644 c/src/lib/libbsp/unix/posix/ChangeLog delete mode 100644 c/src/lib/libbsp/unix/posix/Makefile.am delete mode 100644 c/src/lib/libbsp/unix/posix/README delete mode 100644 c/src/lib/libbsp/unix/posix/bsp_specs delete mode 100644 c/src/lib/libbsp/unix/posix/clock/clock.c delete mode 100644 c/src/lib/libbsp/unix/posix/configure.ac delete mode 100644 c/src/lib/libbsp/unix/posix/console/console-io.c delete mode 100644 c/src/lib/libbsp/unix/posix/console/console.c delete mode 100644 c/src/lib/libbsp/unix/posix/include/.cvsignore delete mode 100644 c/src/lib/libbsp/unix/posix/include/bsp.h delete mode 100644 c/src/lib/libbsp/unix/posix/include/tm27.h delete mode 100644 c/src/lib/libbsp/unix/posix/preinstall.am delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/README delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/cause_intr.c delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/lock.c delete mode 100644 c/src/lib/libbsp/unix/posix/shmsupp/mpisr.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/bspclean.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/bspgetworkarea.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/bsppost.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/bspstart.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/exit.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/main.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/no-ctor.c delete mode 100644 c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc delete mode 100644 c/src/lib/libbsp/unix/posix/timer/timer.c delete mode 100644 c/src/lib/libbsp/unix/posix/times delete mode 100644 c/src/lib/libbsp/unix/posix/tools/.cvsignore delete mode 100644 c/src/lib/libbsp/unix/posix/tools/ChangeLog delete mode 100644 c/src/lib/libbsp/unix/posix/tools/Makefile.am delete mode 100644 c/src/lib/libbsp/unix/posix/tools/configure.ac delete mode 100644 c/src/lib/libbsp/unix/posix/tools/looptest.in delete mode 100644 c/src/lib/libbsp/unix/posix/tools/runtest.in delete mode 100644 c/src/lib/libbsp/unix/posix/tools/semdump.in delete mode 100644 c/src/lib/libbsp/unix/posix/tools/shmdump.in diff --git a/c/src/lib/libbsp/unix/.cvsignore b/c/src/lib/libbsp/unix/.cvsignore deleted file mode 100644 index baba64eafa..0000000000 --- a/c/src/lib/libbsp/unix/.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/unix/ChangeLog b/c/src/lib/libbsp/unix/ChangeLog deleted file mode 100644 index 232de45baa..0000000000 --- a/c/src/lib/libbsp/unix/ChangeLog +++ /dev/null @@ -1,106 +0,0 @@ -2007-04-17 Joel Sherrill - - * posix/tools/runtest.in: Do not run pppd.exe from batch mode script. - -2006-12-02 Ralf Corsépius - - * configure.ac: New BUG-REPORT address. - -2006-10-17 Ralf Corsépius - - * configure.ac: Require autoconf-2.60. Require automake-1.10. - -2004-09-24 Ralf Corsepius - - * configure.ac: Require automake > 1.9. - -2004-02-12 Ralf Corsepius - - * acinclude.m4: Regenerate. - -2004-02-12 Ralf Corsepius - - * configure.ac: RTEMS_CHECK_BSPDIR([$RTEMS_BSP_FAMILY]). - -2004-01-13 Ralf Corsepius - - * Makefile.am: Use @RTEMS_BSP_FAMILY@ instead of - $(RTEMS_BSP_FAMILY). - -2003-12-12 Ralf Corsepius - - * configure.ac: Require automake >= 1.8, autoconf >= 2.59. - -2003-10-20 Ralf Corsepius - - * acinclude.m4: Reflect changes to bootstrap. - * configure.ac: Remove RTEMS_CHECK_CUSTON_BSP. - -2003-08-18 Ralf Corsepius - - * Makefile.am: Reflect having moved aclocal/. - -2003-08-16 Ralf Corsepius - - * Makefile.am: Reflect having moved automake/. - -2003-08-11 Ralf Corsepius - - * configure.ac: Use rtems-bugs@rtems.com as bug report email address. - -2003-03-06 Ralf Corsepius - - * configure.ac: Remove AC_CONFIG_AUX_DIR. - -2003-02-11 Ralf Corsepius - - * configure.ac: AM_INIT_AUTOMAKE([1.7.2]). - -2003-02-11 Ralf Corsepius - - * configure.ac: AC_PREREQ(2.57). - -2002-12-06 Ralf Corsepius - - * configure.ac: Remove RTEMS_CHECK_BSP_CACHE. - -2002-10-21 Ralf Corsepius - - * .cvsignore: Reformat. - Add autom4te*cache. - Remove autom4te.cache. - -2002-03-27 Ralf Corsepius - - * configure.ac: - AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). - AM_INIT_AUTOMAKE([no-define foreign 1.6]). - * Makefile.am: Remove AUTOMAKE_OPTIONS. - -2001-10-11 Ralf Corsepius - - * .cvsignore: Add autom4te.cache for autoconf > 2.52. - * configure.in: Remove. - * configure.ac: New file, generated from configure.in by autoupdate. - -2001-10-09 Ralf Corsepius - - * acinclude.m4: New file. - * configure.in: Use RTEMS_BSP_SUBDIR. - -2000-11-09 Ralf Corsepius - - * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. - -2000-11-02 Ralf Corsepius - - * Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal. - -2000-10-27 Ralf Corsepius - - * configure.in, Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros. - Switch to GNU canonicalization. - -2000-08-10 Joel Sherrill - - * ChangeLog: New file. diff --git a/c/src/lib/libbsp/unix/Makefile.am b/c/src/lib/libbsp/unix/Makefile.am deleted file mode 100644 index e60a8966ac..0000000000 --- a/c/src/lib/libbsp/unix/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../../../aclocal - -# Descend into the @RTEMS_BSP_FAMILY@ directory -SUBDIRS = @RTEMS_BSP_FAMILY@ - -include $(top_srcdir)/../../../automake/subdirs.am -include $(top_srcdir)/../../../automake/local.am diff --git a/c/src/lib/libbsp/unix/acinclude.m4 b/c/src/lib/libbsp/unix/acinclude.m4 deleted file mode 100644 index 0ae5128eb5..0000000000 --- a/c/src/lib/libbsp/unix/acinclude.m4 +++ /dev/null @@ -1,10 +0,0 @@ -# RTEMS_CHECK_BSPDIR(RTEMS_BSP_FAMILY) -AC_DEFUN([RTEMS_CHECK_BSPDIR], -[ - case "$1" in - posix ) - AC_CONFIG_SUBDIRS([posix]);; - *) - AC_MSG_ERROR([Invalid BSP]);; - esac -]) diff --git a/c/src/lib/libbsp/unix/configure.ac b/c/src/lib/libbsp/unix/configure.ac deleted file mode 100644 index 3c4ff7bb69..0000000000 --- a/c/src/lib/libbsp/unix/configure.ac +++ /dev/null @@ -1,21 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.60) -AC_INIT([rtems-c-src-lib-libbsp-unix],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) -AC_CONFIG_SRCDIR([posix]) -RTEMS_TOP(../../../../..) - -RTEMS_CANONICAL_TARGET_CPU -AM_INIT_AUTOMAKE([no-define foreign 1.10]) -AM_MAINTAINER_MODE - -RTEMS_ENV_RTEMSBSP -RTEMS_PROJECT_ROOT - -RTEMS_CHECK_BSPDIR([$RTEMS_BSP_FAMILY]) - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/c/src/lib/libbsp/unix/posix/.cvsignore b/c/src/lib/libbsp/unix/posix/.cvsignore deleted file mode 100644 index baba64eafa..0000000000 --- a/c/src/lib/libbsp/unix/posix/.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/unix/posix/ChangeLog b/c/src/lib/libbsp/unix/posix/ChangeLog deleted file mode 100644 index fc5a5dfb7e..0000000000 --- a/c/src/lib/libbsp/unix/posix/ChangeLog +++ /dev/null @@ -1,525 +0,0 @@ -2009-09-15 Ralf Corsépius - - * configure.ac: Remove RTEMS_BSP_BOOTCARD_OPTIONS. - - 2009-07-16 Joel Sherrill - - * configure.ac: Rename BSP_BOOTCARD_OPTIONS to - RTEMS_BSP_BOOTCARD_OPTIONS. Add RTEMS_BSP_CLEANUP_OPTIONS so all BSPs - have the same options. - -2009-07-03 Joel Sherrill - - * Makefile.am: Switch to shared routine. - * startup/setvec.c: Removed. - -2009-05-08 Joel Sherrill - - * startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for - bsp_get_work_area() since the work area is larger than a single - allocatable object. - -2009-04-28 Chris Johns - - * startup/main.c: Update for boot_card command line change. - -2008-12-01 Joel Sherrill - - * bsp_specs, startup/bspgetworkarea.c: Links hello again. - -2008-10-02 Joel Sherrill - - * startup/bspgetworkarea.c: Change size_t to ssize_t on - bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits - which would limit the work area to 64K. - -2008-09-30 Ralf Corsépius - - * Makefile.am: Eliminate bsp.am. Cleanup. - -2008-09-29 Ralf Corsépius - - * Makefile.am: Eliminate *_SOURCES. - -2008-09-29 Ralf Corsépius - - * Makefile.am: Remove noinst_PROGRAMS (Unused). - -2008-09-26 Ralf Corsépius - - * Makefile.am: Cleanup ../../shared/include/bootcard.h handling. - -2008-09-23 Joel Sherrill - - * configure.ac: Make letting boot_card() handle work area allocation - mandatory. Rename RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION to - BSP_BOOTCARD_OPTIONS. - -2008-09-18 Joel Sherrill - - * include/bsp.h: Remove prototypes of routines in bootcard.h. - -2008-09-18 Joel Sherrill - - * Makefile.am, configure.ac, startup/bspstart.c: Add - bsp_get_work_area() implementation and use more of the BSP - Initialization Framework. - * startup/bspgetworkarea.c, startup/bsppost.c: New files. - -2008-09-18 Joel Sherrill - - * include/bsp.h: Remove unnecessary boilerplate comments. - -2008-09-16 Joel Sherrill - - * clock/clock.c: Remove unnecessary includes of rtems/libcsupport.h and - rtems/libio.h. - -2008-09-10 Joel Sherrill - - * 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 - - * clock/clock.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-09-05 Ralf Corsépius - - * timer/timer.c: Convert to "bool". - -2008-08-31 Joel Sherrill - - * timer/timer.c: Eliminate empty function from every benchmark timer - driver. Fix spelling. - -2008-08-31 Joel Sherrill - - * timer/timer.c: Rename timer driver methods to follow RTEMS - programming conventions. - -2008-05-15 Joel Sherrill - - * 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 - - * Makefile.am: Rework to avoid .rel files. - -2008-05-12 Joel Sherrill - - * 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. - -2007-12-12 Joel Sherrill - - * Makefile.am, startup/bspstart.c: Links and runs again. - * console/console-io.c: New file. - -2007-12-11 Joel Sherrill - - * clock/clock.c, include/bsp.h, startup/bspstart.c, - startup/rtems-ctor.cc: Eliminate copies of the Configuration Table. - Use the RTEMS provided accessor macros to obtain configuration - fields. - -2007-12-04 Joel Sherrill - - * 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 - - * 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-08-07 Joel Sherrill - - * preinstall.am: Save changes again to make tagger happy. - -2007-07-31 Joel Sherrill - - * Makefile.am, preinstall.am: You need main() to link all applications. - There is no C++ specific way to link currently. - -2007-07-24 Joel Sherrill - - * Makefile.am, startup/main.c: Now can link with C compiler and not - require C++ compiler to link. The file rtems-ctor.cc is not being - built but if there is a need for C++ code to run on this BSP, then it - will have to be addressed. The simplest solution which might work is - to check the RTEMS system state before calling bsp_start() in main(). - -2007-05-07 Ralf Corsépius - - * startup/bspstart.c: Use uintptr_t for address arithmetics. - * bsp_specs: Remove -qrtems_debug. - -2006-12-02 Ralf Corsépius - - * configure.ac: New BUG-REPORT address. - -2006-10-30 Joel Sherrill - - * startup/rtems-ctor.cc: Conditionally disable non-GCC code. - -2006-10-17 Ralf Corsépius - - * configure.ac: Require autoconf-2.60. Require automake-1.10. - -2006-01-11 Ralf Corsepius - - * Makefile.am: Add preinstall.am. - -2005-05-26 Ralf Corsepius - - * include/bsp.h: New header guard. - -2005-01-22 Ralf Corsepius - - * Makefile.am: Merge rtems-ctor.o into libbsp.a. - Fix building rtems-ctor.o and no-ctor.o. - -2005-01-07 Ralf Corsepius - - * Makefile.am: Eliminate CFLAGS_OPTIMIZE_V. - -2005-01-02 Ralf Corsepius - - * Makefile.am: Remove build-variant support. - -2004-09-24 Ralf Corsepius - - * configure.ac: Require automake > 1.9. - -2004-04-23 Ralf Corsepius - - PR 610/bsps - * Makefile.am: Add include/tm27.h, Cosmetics. - * include/tm27.h: Final cosmetics. - -2004-04-22 Ralf Corsepius - - * include/bsp.h: Split out tmtest27 support. - * include/tm27.h: New. - -2004-04-21 Ralf Corsepius - - PR 613/bsps - * include/bsp.h: Remove MAX_LONG_TEST_DURATION. - -2004-04-21 Ralf Corsepius - - PR 614/bsps - * include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused). - -2004-04-08 Ralf Corsepius - - * Makefile.am: Build main.o for !HAS_CXX. - Set EXEEXT = (Workaround to a bug in automake). - -2004-04-01 Ralf Corsepius - - * include/bsp.h: Include instead of . - * startup/exit.c: Include instead of . - * include/bsp.h: Include instead of . - * include/bsp.h: Include instead of . - -2004-03-31 Ralf Corsepius - - * clock/clock.c, include/bsp.h, shmsupp/cause_intr.c, - shmsupp/getcfg.c, shmsupp/lock.c, startup/bspstart.c: Convert to - using c99 fixed size types. - -2004-02-19 Ralf Corsepius - - * Makefile.am: Reflect changes to bsp.am. - Preinstall dist_project_lib*. - -2004-02-14 Ralf Corsepius - - * Makefile.am: Reflect changes to bsp.am. - -2004-02-03 Ralf Corsepius - - * configure.ac: Remove AM_CONDITIONAL(HAS_MP). - -2004-01-30 Ralf Corsepius - - * Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am, - shmsupp/Makefile.am, startup/Makefile.am, timer/Makefile.am, - wrapup/Makefile.am. Use automake compilation rules. - * clock/Makefile.am, console/Makefile.am, shmsupp/Makefile.am, - startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am: Remove. - * configure.ac: Reflect changes above. - -2004-01-28 Ralf Corsepius - - * configure.ac: Add nostdinc to AUTOMAKE_OPTIONS. - Add RTEMS_PROG_CCAS. - -2004-01-21 Ralf Corsepius - - * Makefile.am: Add PREINSTALL_DIRS. - -2004-01-14 Ralf Corsepius - - * startup/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. - Add PRE/TMPINSTALL_FILES to CLEANFILES. - -2004-01-05 Ralf Corsepius - - * wrapup/Makefile.am: Eliminate $(LIB). - Use noinst_DATA to trigger building libbsp.a. - -2003-12-18 Ralf Corsepius - - * wrapup/Makefile.am: Remove GENERIC_FILES. - -2003-12-13 Ralf Corsepius - - * startup/Makefile.am: s,${PROJECT_RELEASE}/lib,$(PROJECT_LIB),g. - -2003-12-12 Ralf Corsepius - - * startup/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES. - -2003-12-12 Ralf Corsepius - - * configure.ac: Require automake >= 1.8, autoconf >= 2.59. - -2003-12-11 Ralf Corsepius - - * startup/Makefile.am: Add custom compilation rule for - rtems-ctor$(LIB_VARIANT).$(OBJEXT). - -2003-12-11 Ralf Corsepius - - * startup/Makefile.am: Misc cleanups and fixes. - * wrapup/Makefile.am: Misc cleanups and fixes. - -2003-12-02 Ralf Corsepius - - * Makefile.am: Add preinstallation dirstamp support. - * clock/Makefile.am: Cosmetics. - * console/Makefile.am: Cosmetics. - * shmsupp/Makefile.am: Cosmetics. - * startup/Makefile.am: Cosmetics. - * timer/Makefile.am: Cosmetics. - * wrapup/Makefile.am: Cosmetics. - -2003-12-02 Ralf Corsepius - - * clock/Makefile.am: Remove all-local: $(ARCH). - * console/Makefile.am: Remove all-local: $(ARCH). - * shmsupp/Makefile.am: Remove all-local: $(ARCH). - * startup/Makefile.am: Remove all-local: $(ARCH). - * timer/Makefile.am: Remove all-local: $(ARCH). - * wrapup/Makefile.am: Remove all-local: $(ARCH). - -2003-09-29 Ralf Corsepius - - * Makefile.am: Merge-in include/Makefile.am. - Reflect changes to bsp.am. - * include/Makefile.am: Remove. - * configure.ac: Reflect changes above. - -2003-09-26 Joel Sherrill - - * timer/timer.c: Obsoleting HP PA-RISC port and removing all - references. - -2003-09-04 Joel Sherrill - - * clock/clock.c, console/console.c, include/bsp.h, shmsupp/addrconv.c, - shmsupp/cause_intr.c, shmsupp/getcfg.c, shmsupp/lock.c, - shmsupp/mpisr.c, startup/bspclean.c, startup/bspstart.c, - startup/exit.c, startup/setvec.c, timer/timer.c: URL for license - changed. - -2003-08-18 Ralf Corsepius - - * Makefile.am: Reflect having moved aclocal/. - -2003-08-16 Ralf Corsepius - - * 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/. - * shmsupp/Makefile.am: Reflect having moved automake/. - * startup/Makefile.am: Reflect having moved automake/. - * timer/Makefile.am: Reflect having moved automake/. - * wrapup/Makefile.am: Reflect having moved automake/. - -2003-08-11 Ralf Corsepius - - * configure.ac: Use rtems-bugs@rtems.com as bug report email address. - -2003-03-06 Ralf Corsepius - - * configure.ac: Remove AC_CONFIG_AUX_DIR. - -2003-02-11 Ralf Corsepius - - * configure.ac: AM_INIT_AUTOMAKE([1.7.2]). - -2003-02-11 Ralf Corsepius - - * configure.ac: AC_PREREQ(2.57). - -2003-01-15 Ralf Corsepius - - * configure.ac: Add BSPOPTS (WORKSPACE_MB, HEAPSPACE_MB). - * clock/Makefile.am: Don't include @RTEMS_BSP@.cfg. - * console/Makefile.am: Don't include @RTEMS_BSP@.cfg. - * shmsupp/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-10 Ralf Corsepius - - * wrapup/Makefile.am: Don't include @RTEMS_BSP@.cfg. - -2002-11-19 Ralf Corsepius - - * configure.ac: Remove RTEMS_OUTPUT_BUILD_SUBDIRS. Cosmetical - changes. - -2002-11-05 Ralf Corsepius - - * configure.ac: Unconditionally check for CXX (Hack to bug in - autoconf > 2.54). - -2002-10-21 Ralf Corsepius - - * .cvsignore: Reformat. - Add autom4te*cache. - Remove autom4te.cache. - -2002-08-11 Ralf Corsepius - - * clock/Makefile.am: Use .$(OBJEXT) instead of .o. - * console/Makefile.am: Use .$(OBJEXT) instead of .o. - * shmsupp/Makefile.am: Use .$(OBJEXT) instead of .o. - * startup/Makefile.am: Use .$(OBJEXT) instead of .o. - * timer/Makefile.am: Use .$(OBJEXT) instead of .o. - * wrapup/Makefile.am: Use .$(OBJEXT) instead of .o. - -2002-07-04 Ralf Corsepius - - * wrapup/Makefile.am: Eliminate TMPINSTALL_FILES. - Remove $(OBJS) from all-local. - -2002-06-29 Ralf Corsepius - - * wrapup/Makefile.am: Remove preinstallation of libbsp.a, - -2002-03-27 Ralf Corsepius - - * 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. - * shmsupp/Makefile.am: Remove AUTOMAKE_OPTIONS. - * startup/Makefile.am: Remove AUTOMAKE_OPTIONS. - * timer/Makefile.am: Remove AUTOMAKE_OPTIONS. - * wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS. - -2001-11-30 Ralf Corsepius - - * configure.ac: Introduce RTEMS_BSP_CONFIGURE. - -2001-11-07 Joel Sherrill - - * startup/Makefile.am: Do NOT use the standard bootcard.c. - NOTE: With this fix all test including the mptest ran as expected. - -2001-10-11 Ralf Corsepius - - * .cvsignore: Add autom4te.cache for autoconf > 2.52. - * configure.in: Remove. - * configure.ac: New file, generated from configure.in by autoupdate. - -2001-09-27 Ralf Corsepius - - * include/Makefile.am: Use 'CLEANFILES ='. - * include/Makefile.am: Use 'TMPINSTALL_FILES ='. - -2001-08-17 Joel Sherrill - - * include/Makefile.am: Include coverhd.h so tmtests will compile. - -2001-05-26 Ralf Corsepius - - * configure.in: Add bspopts.h. - * include/.cvsignore: Add bspopts.h*, stamp-h*, coverhd.h. - * include/Makefile.am: Use *_HEADERS instead of *H_FILES. - * include/bsp.h: Include bspopts.h. - -2001-05-10 Ralf Corsepius - - * configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]). - -2000-11-09 Ralf Corsepius - - * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. - -2000-11-02 Ralf Corsepius - - * Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal. - -2000-11-01 Joel Sherrill - - * startup/bspstart.c: assoc.h, error.h, libio_.h, libio.h, - and libcsupport.h moved from libc to lib/include/rtems and - now must be referenced as . Header file order - was cleaned up while doing this. - -2000-10-30 Ralf Corsepius - - * bsp_specs: Add qnolinkcmds. - -2000-10-27 Ralf Corsepius - - * Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros. - Switch to GNU canonicalization. - -2000-09-04 Ralf Corsepius - - * clock/Makefile.am, console/Makefile.am, shmsupp/Makefile.am, - startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am: Include - compile.am - -2000-08-10 Joel Sherrill - - * ChangeLog: New file. diff --git a/c/src/lib/libbsp/unix/posix/Makefile.am b/c/src/lib/libbsp/unix/posix/Makefile.am deleted file mode 100644 index 63a8f97930..0000000000 --- a/c/src/lib/libbsp/unix/posix/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../../../../aclocal - -EXEEXT = - -# wrapup is the one that actually builds and installs the library -# from the individual .rel files built in other directories -SUBDIRS = . tools - -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 - -nodist_include_HEADERS += ../../shared/include/coverhd.h - -noinst_LIBRARIES = libbsp.a -libbsp_a_SOURCES = - -# startup -libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \ - ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \ - startup/bspstart.c startup/bsppost.c startup/bspgetworkarea.c \ - ../../shared/setvec.c ../../shared/bootcard.c -libbsp_a_SOURCES += startup/main.c - -# clock -libbsp_a_SOURCES += clock/clock.c -# console -libbsp_a_SOURCES += console/console.c console/console-io.c -# timer -libbsp_a_SOURCES += timer/timer.c - -if HAS_MP -# shmsupp -libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c \ - shmsupp/cause_intr.c shmsupp/lock.c shmsupp/mpisr.c -endif - -EXTRA_DIST = times - -include $(srcdir)/preinstall.am -include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/unix/posix/README b/c/src/lib/libbsp/unix/posix/README deleted file mode 100644 index 0bf0782737..0000000000 --- a/c/src/lib/libbsp/unix/posix/README +++ /dev/null @@ -1,18 +0,0 @@ -# -# $Id$ -# - - -This is a "generic" BSP for a modern UNIX system which is enough -System V and POSIX compliant to support at least the following: - - + semaphores - + itimers - + mmap - + shared memory - -At the moment, this BSP is known to work with the following UNIXes: - - + HP-UX 9.0.x - + Solaris 2.x - + Linux 1.1.x (single processor only -- mmap is broken) diff --git a/c/src/lib/libbsp/unix/posix/bsp_specs b/c/src/lib/libbsp/unix/posix/bsp_specs deleted file mode 100644 index ec2ba99888..0000000000 --- a/c/src/lib/libbsp/unix/posix/bsp_specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename lib old_lib - -*lib: -%{!qrtems: %(old_lib)} \ -%{qrtems: --start-group -lrtemsbsp -lrtemscpu --end-group \ -%(old_lib) \ -%{qnolinkcmds: } } - diff --git a/c/src/lib/libbsp/unix/posix/clock/clock.c b/c/src/lib/libbsp/unix/posix/clock/clock.c deleted file mode 100644 index c0ba67e45f..0000000000 --- a/c/src/lib/libbsp/unix/posix/clock/clock.c +++ /dev/null @@ -1,78 +0,0 @@ -/* Clock - * - * This routine generates clock ticks using standard POSIX services. - * The tick frequency is specified by the bsp. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include - -void Clock_exit(void); - -volatile uint32_t Clock_driver_ticks; - -uint32_t Clock_driver_vector; - -/* - * These are set by clock driver during its init - */ - -rtems_device_major_number rtems_clock_major = ~0; -rtems_device_minor_number rtems_clock_minor; - -void Install_clock(rtems_isr_entry clock_isr) -{ - Clock_driver_ticks = 0; - - (void) set_vector( clock_isr, Clock_driver_vector, 1 ); - - _CPU_Start_clock( rtems_configuration_get_microseconds_per_tick() ); - - atexit(Clock_exit); -} - -void Clock_isr(int vector) -{ - Clock_driver_ticks++; - rtems_clock_tick(); -} - -/* - * Called via atexit() - * Remove the clock signal - */ - -void Clock_exit(void) -{ - _CPU_Stop_clock(); - - (void) set_vector( 0, Clock_driver_vector, 1 ); -} - -rtems_device_driver Clock_initialize( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - Clock_driver_vector = _CPU_Get_clock_vector(); - - Install_clock((rtems_isr_entry) 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/unix/posix/configure.ac b/c/src/lib/libbsp/unix/posix/configure.ac deleted file mode 100644 index 37c72584c1..0000000000 --- a/c/src/lib/libbsp/unix/posix/configure.ac +++ /dev/null @@ -1,42 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.60) -AC_INIT([rtems-c-src-lib-libbsp-unix-posix],[_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_ENABLE_CXX - -RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) -RTEMS_PROG_CXX_FOR_TARGET - -RTEMS_CANONICALIZE_TOOLS -RTEMS_PROG_CCAS -RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) - -RTEMS_CHECK_CXX - -RTEMS_CONFIG_BUILD_SUBDIRS(tools) - -AM_CONDITIONAL(HAS_CXX,test "$HAS_CPLUSPLUS" = "yes") - -## bsp-specific options -RTEMS_BSPOPTS_SET([WORKSPACE_MB],[*],[2]) -RTEMS_BSPOPTS_HELP([WORKSPACE_MB], -[The BSP's workspace RAM in MB.]) - -RTEMS_BSPOPTS_SET([HEAPSPACE_MB],[*],[1]) -RTEMS_BSPOPTS_HELP([HEAPSPACE_MB], -[The BSP's heapspace RAM in MB.]) - -RTEMS_BSP_CLEANUP_OPTIONS(0, 0) - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/c/src/lib/libbsp/unix/posix/console/console-io.c b/c/src/lib/libbsp/unix/posix/console/console-io.c deleted file mode 100644 index a2f7e814e0..0000000000 --- a/c/src/lib/libbsp/unix/posix/console/console-io.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * UNIX BSP Debug IO - * - * 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$ - */ - -/* - * To support printk - */ - -#include -#include - -void POSIX_BSP_output_char(char c) { fputc( c, stderr ); } - -BSP_output_char_function_type BSP_output_char = POSIX_BSP_output_char; -BSP_polling_getchar_function_type BSP_poll_char = NULL; diff --git a/c/src/lib/libbsp/unix/posix/console/console.c b/c/src/lib/libbsp/unix/posix/console/console.c deleted file mode 100644 index 2f1eb0260e..0000000000 --- a/c/src/lib/libbsp/unix/posix/console/console.c +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Console IO Support Routines - * - * These provide UNIX-like read and write calls for the C library. - * - * NOTE: For the most part, this is just a space holder. - * - * COPYRIGHT (c) 1994 by Division Incorporated - * - * 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 - -#include -#include - -rtems_device_driver -console_initialize(rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return 0; -} - -/* - * Open entry point - */ - -rtems_device_driver console_open( - rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return RTEMS_SUCCESSFUL; -} - -/* - * Close entry point - */ - -rtems_device_driver console_close( - rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return RTEMS_SUCCESSFUL; -} - -/* - * read bytes from the serial port. We only have stdin. - */ - -rtems_device_driver console_read( - rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return RTEMS_UNSATISFIED; -} - -/* - * write bytes to the serial port. Stdout and stderr are the same. - */ - -rtems_device_driver console_write( - rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return -1; -} - -/* - * IO Control entry point - */ - -rtems_device_driver console_control( - rtems_device_major_number major, - rtems_device_minor_number minor, - void * arg -) -{ - return RTEMS_SUCCESSFUL; -} diff --git a/c/src/lib/libbsp/unix/posix/include/.cvsignore b/c/src/lib/libbsp/unix/posix/include/.cvsignore deleted file mode 100644 index eb2d61f966..0000000000 --- a/c/src/lib/libbsp/unix/posix/include/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -bspopts.h -bspopts.h.in -coverhd.h -stamp-h -stamp-h.in diff --git a/c/src/lib/libbsp/unix/posix/include/bsp.h b/c/src/lib/libbsp/unix/posix/include/bsp.h deleted file mode 100644 index c1feadb4ac..0000000000 --- a/c/src/lib/libbsp/unix/posix/include/bsp.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This include file contains all POSIX BSP definitions. - * - * COPYRIGHT (c) 1989-2008. - * 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 _BSP_H -#define _BSP_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include - -#include -#include -#include -#include - -/* functions */ - -rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); - -extern int cpu_number; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/c/src/lib/libbsp/unix/posix/include/tm27.h b/c/src/lib/libbsp/unix/posix/include/tm27.h deleted file mode 100644 index 9e8506069f..0000000000 --- a/c/src/lib/libbsp/unix/posix/include/tm27.h +++ /dev/null @@ -1,35 +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 1 - -#define Install_tm27_vector( handler ) \ - set_vector( (handler), 16, 1 ) - -#define Cause_tm27_intr() \ - raise( 16 ) - -#define Clear_tm27_intr() /* empty */ - -#define Lower_tm27_intr() \ - _ISR_Set_level( 0 ); - -#endif diff --git a/c/src/lib/libbsp/unix/posix/preinstall.am b/c/src/lib/libbsp/unix/posix/preinstall.am deleted file mode 100644 index f157c593e0..0000000000 --- a/c/src/lib/libbsp/unix/posix/preinstall.am +++ /dev/null @@ -1,54 +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-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)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h - diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/README b/c/src/lib/libbsp/unix/posix/shmsupp/README deleted file mode 100644 index 93d6fcbe8c..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/README +++ /dev/null @@ -1,9 +0,0 @@ -# -# $Id$ -# - -This directory contains the SHM driver support files for -System V/POSIX derived UNIX flavors. - -WARNING: The interrupt support in this directory currently will - only work in a homogeneous system. diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c b/c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c deleted file mode 100644 index 25c79ce9c7..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c +++ /dev/null @@ -1,29 +0,0 @@ -/* addrconv.v - * - * No address range conversion is required. - * - * Input parameters: - * addr - address to convert - * - * Output parameters: - * returns - converted address - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include - -void *Shm_Convert_address( - void *addr -) -{ - return ( addr ); -} diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/cause_intr.c b/c/src/lib/libbsp/unix/posix/shmsupp/cause_intr.c deleted file mode 100644 index b1ecec4559..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/cause_intr.c +++ /dev/null @@ -1,33 +0,0 @@ -/* void Shm_interrupt_unix( node ) - * - * This routine is the shared memory driver routine which - * generates interrupts to other CPUs. - * - * Input parameters: - * node - destination of this packet (0 = broadcast) - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include -#include /* pid_t */ - -void Shm_Cause_interrupt_unix( - uint32_t node -) -{ - Shm_Interrupt_information *intr; - intr = &Shm_Interrupt_table[node]; - - _CPU_SHM_Send_interrupt( (pid_t) intr->address, intr->value ); -} diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c b/c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c deleted file mode 100644 index d27f995f73..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c +++ /dev/null @@ -1,74 +0,0 @@ -/* void Shm_get_config( localnode, &shmcfg ) - * - * This routine initializes, if necessary, and returns a pointer - * to the Shared Memory Configuration Table for the UNIX - * simulator. - * - * INPUT PARAMETERS: - * localnode - local node number - * shmcfg - address of pointer to SHM Config Table - * - * OUTPUT PARAMETERS: - * *shmcfg - pointer to SHM Config Table - * - * NOTES: This driver is capable of supporting a practically unlimited - * number of nodes. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include -#include /* pid_t */ - -shm_config_table BSP_shm_cfgtbl; - -int semid; - -void Shm_Cause_interrupt_unix( - uint32_t node -); - -void Shm_Get_configuration( - uint32_t localnode, - shm_config_table **shmcfg -) -{ - _CPU_SHM_Init( - Shm_Maximum_nodes, - Shm_Is_master_node(), - (void **)&BSP_shm_cfgtbl.base, - (uint32_t*)&BSP_shm_cfgtbl.length - ); - - BSP_shm_cfgtbl.format = SHM_BIG; - - BSP_shm_cfgtbl.cause_intr = Shm_Cause_interrupt_unix; - -#ifdef NEUTRAL_BIG - BSP_shm_cfgtbl.convert = NULL_CONVERT; -#else - BSP_shm_cfgtbl.convert = CPU_swap_u32; -#endif - - if ( _CPU_SHM_Get_vector() ) { - BSP_shm_cfgtbl.poll_intr = INTR_MODE; - BSP_shm_cfgtbl.Intr.address = (vol_u32 *) _CPU_Get_pid(); /* process id */ - BSP_shm_cfgtbl.Intr.value = _CPU_SHM_Get_vector(); /* signal to send */ - BSP_shm_cfgtbl.Intr.length = LONG; - } else { - BSP_shm_cfgtbl.poll_intr = POLLED_MODE; - BSP_shm_cfgtbl.Intr.address = NO_INTERRUPT; - BSP_shm_cfgtbl.Intr.value = NO_INTERRUPT; - BSP_shm_cfgtbl.Intr.length = NO_INTERRUPT; - } - - *shmcfg = &BSP_shm_cfgtbl; -} diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/lock.c b/c/src/lib/libbsp/unix/posix/shmsupp/lock.c deleted file mode 100644 index de2f718a27..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/lock.c +++ /dev/null @@ -1,71 +0,0 @@ -/* Shared Memory Lock Routines - * - * This shared memory locked queue support routine need to be - * able to lock the specified locked queue. Interrupts are - * disabled while the queue is locked to prevent preemption - * and deadlock when two tasks poll for the same lock. - * previous level. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include - -/* - * Shm_Initialize_lock - * - * Initialize the lock for the specified locked queue. - */ - -void Shm_Initialize_lock( - Shm_Locked_queue_Control *lq_cb -) -{ - lq_cb->lock = lq_cb - Shm_Locked_queues; -} - -/* Shm_Lock( &lq_cb ) - * - * This shared memory locked queue support routine locks the - * specified locked queue. It disables interrupts to prevent - * a deadlock condition. - */ - -void Shm_Lock( - Shm_Locked_queue_Control *lq_cb -) -{ - uint32_t isr_level; - - rtems_interrupt_disable( isr_level ); - - Shm_isrstat = isr_level; - - _CPU_SHM_Lock( lq_cb->lock ); -} - -/* - * Shm_Unlock - * - * Unlock the lock for the specified locked queue. - */ - -void Shm_Unlock( - Shm_Locked_queue_Control *lq_cb -) -{ - uint32_t isr_level; - - _CPU_SHM_Unlock( lq_cb->lock ); - - isr_level = Shm_isrstat; - rtems_interrupt_enable( isr_level ); -} diff --git a/c/src/lib/libbsp/unix/posix/shmsupp/mpisr.c b/c/src/lib/libbsp/unix/posix/shmsupp/mpisr.c deleted file mode 100644 index 98be462e82..0000000000 --- a/c/src/lib/libbsp/unix/posix/shmsupp/mpisr.c +++ /dev/null @@ -1,31 +0,0 @@ -/* Shm_setvec - * - * This driver routine sets the SHM interrupt vector to point to the - * driver's SHM interrupt service routine. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include - -void Shm_setvec( void ) -{ - int vector; - - vector = _CPU_SHM_Get_vector(); - - if ( vector ) - set_vector( Shm_isr, vector, 1 ); -} diff --git a/c/src/lib/libbsp/unix/posix/startup/bspclean.c b/c/src/lib/libbsp/unix/posix/startup/bspclean.c deleted file mode 100644 index d82338559a..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/bspclean.c +++ /dev/null @@ -1,40 +0,0 @@ -/* bsp_cleanup() - * - * This routine normally is part of start.s and returns - * control to a monitor but on the UNIX simulator - * we do that directly from main.c. - * - * INPUT: NONE - * - * OUTPUT: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include - -#include - -/* - * The app has "exited" (called rtems_shutdown_executive) - */ - -void bsp_cleanup( void ) -{ - /* - * Invoke any fatal error extension and "halt" - * By definition, rtems_fatal_error_occurred does not return. - */ - - fflush(stdout); - fflush(stderr); - - rtems_fatal_error_occurred(0); -} diff --git a/c/src/lib/libbsp/unix/posix/startup/bspgetworkarea.c b/c/src/lib/libbsp/unix/posix/startup/bspgetworkarea.c deleted file mode 100644 index d5b0876ccb..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/bspgetworkarea.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * 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 -#include -#include -#include - -void bsp_get_work_area( - void **work_area_start, - uintptr_t *work_area_size, - void **heap_start, - uintptr_t *heap_size -) -{ - uintptr_t workspace_ptr; - - workspace_ptr = (uintptr_t) - sbrk(rtems_configuration_get_work_space_size() + CPU_ALIGNMENT); - workspace_ptr += CPU_ALIGNMENT - 1; - workspace_ptr &= ~(CPU_ALIGNMENT - 1); - - /* start with requested workspace + 1 MB for heap */ - *work_area_start = (void *) workspace_ptr; - *work_area_size = rtems_configuration_get_work_space_size() + - (1 * 1024 * 1024); - *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA; - *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT; -} diff --git a/c/src/lib/libbsp/unix/posix/startup/bsppost.c b/c/src/lib/libbsp/unix/posix/startup/bsppost.c deleted file mode 100644 index 23a07003d0..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/bsppost.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This is a shared BSP post driver hook designed to open - * /dev/console for stdin, stdout, and stderr if it exists. - * Newlib will automatically associate the file descriptors - * with the first thress files opened. - * - * COPYRIGHT (c) 1989-2008. - * 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 -#include - -void bsp_postdriver_hook(void) -{ -} diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c deleted file mode 100644 index 1db417da2e..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * This routine starts the application. It includes application, - * board, and monitor specific initialization and configuration. - * The generic CPU dependent initialization has been performed - * before this routine is invoked. - * - * Called by RTEMS::RTEMS constructor in startup-ctor.cc - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include -#include - -#include -#include - -/* - * Amount to increment itimer by each pass - * It is a variable instead of a #define to allow the 'looptest' - * script to bump it without recompiling rtems - */ - -uint32_t CPU_CLICKS_PER_TICK; - -/* - * bsp_start - * - * This routine does the bulk of the system initialization. - */ -void bsp_start(void) -{ - cpu_number = 0; - - #if defined(RTEMS_MULTIPROCESSING) - /* - * If the node number is -1 then the application better provide - * it through environment variables RTEMS_NODE. - * Ditto for RTEMS_MAXIMUM_NODES - */ - if (Configuration.User_multiprocessing_table) { - char *p; - - if (Configuration.User_multiprocessing_table->node == -1) { - p = getenv("RTEMS_NODE"); - Configuration.User_multiprocessing_table->node = p ? atoi(p) : 1; - } - - /* If needed provide maximum_nodes also */ - if (Configuration.User_multiprocessing_table->maximum_nodes == -1) { - p = getenv("RTEMS_MAXIMUM_NODES"); - Configuration.User_multiprocessing_table->maximum_nodes = p ? atoi(p) : 1; - } - } - - /* - * Set cpu_number to accurately reflect our cpu number - */ - if (Configuration.User_multiprocessing_table) - cpu_number = Configuration.User_multiprocessing_table->node - 1; - #endif - - CPU_CLICKS_PER_TICK = 1; -} diff --git a/c/src/lib/libbsp/unix/posix/startup/exit.c b/c/src/lib/libbsp/unix/posix/startup/exit.c deleted file mode 100644 index 67523403d1..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/exit.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * exit - * - * This routine returns control to "the pre-RTEMS environment". - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include -#include - -void _exit( void ) -{ - /* Clock or Timer cleanup is run by at_exit() */ - - Io_cleanup(); - - bsp_cleanup(); -} diff --git a/c/src/lib/libbsp/unix/posix/startup/main.c b/c/src/lib/libbsp/unix/posix/startup/main.c deleted file mode 100644 index 37e0116bdd..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/main.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Description: - * This file exists solely to (try to) ensure RTEMS is initialized. - * It is not to be used in systems which want C++ support. - * - * $Id$ - */ - -#include -#include -#include - -/* - * RTEMS program name - * Probably not used by anyone, but it is nice to have it. - * Actually the UNIX version of CPU_INVOKE_DEBUGGER will probably - * need to use it - */ - -char *rtems_progname; - -int main( - int argc, - char **argv -) -{ - boot_card(0); - - return 0; -} diff --git a/c/src/lib/libbsp/unix/posix/startup/no-ctor.c b/c/src/lib/libbsp/unix/posix/startup/no-ctor.c deleted file mode 100644 index 349ad2b1dd..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/no-ctor.c +++ /dev/null @@ -1,16 +0,0 @@ -/* - * rtems, floss, libc are always compiled with GNU compilers - * application code may be compiled with some other C++ compiler - * that has a different global constructor technique. - * - * For the simple case, where the app has no global constructors or - * is compiled by g++, we provide this empty routine - * In order to get both g++ constructors (RTEMS::RTEMS, for example) - * and application constructors run, we provide this routine. - * - * $Id$ - */ - -void invoke_non_gnu_constructors(void) -{ -} diff --git a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc b/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc deleted file mode 100644 index 7d04ceafc6..0000000000 --- a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * rtems-ctor.cc - * - * Description: - * This file exists solely to (try to) ensure RTEMS is initialized - * before any global constructors are run. - * - * The problem: - * Global constructors might reasonably expect that new() will - * work, but since new() uses malloc() which uses RTEMS regions, - * it can not be called until after initialize_executive(). - * - * Global constructors are called in GNU systems one of 2 ways: - * - * an "invisible" call to __main() inserted by compiler - * This __main() calls __do_global_ctors() which - * walks thru the table and calls all global - * constructors. - * - * or - - * A special section is put into the linked binary. The - * system startup code knows to run the constructors in - * this special section before calling main(). - * - * By making RTEMS initialization a constructor, we avoid having - * too much about all this. All we have to guarantee is that - * this constructor is the first one run. - * - * - * So for the first case above, this is what happens - * - * host crt0 - * main() - * __main() - * __do_global_ctors() - * bsp_start() - * init_executive_early() - * <> - * - * init_executive_late() - * bsp_cleanup() - * - * TODO: - * - * $Id$ - */ - -#include -#include -#include - -class RTEMS { - public: - RTEMS(); - ~RTEMS(); -}; - -RTEMS rtems_constructor; - -RTEMS::RTEMS() -{ - bsp_start(); -} - -RTEMS::~RTEMS() -{ - bsp_cleanup(); -} - -extern "C" { - #ifndef __GNUC__ - extern void invoke_non_gnu_constructors(void); - #endif - - int - main(int argc, - char **argv, - char ** /* environp is unused */) - { - rtems_argc = argc; - rtems_argv = argv; - - rtems_interrupt_level bsp_isr_level; - - /* - * Make sure interrupts are disabled. - */ - - rtems_interrupt_disable( bsp_isr_level ); - - if ((argc > 0) && argv && argv[0]) - rtems_progname = argv[0]; - else - rtems_progname = "RTEMS"; - - /* - * run any non-gnu constructors we may need - */ - - #ifndef __GNUC__ - invoke_non_gnu_constructors(); - #endif - - rtems_initialize_executive_early( &Configuration ); - - /* - * Start multitasking - */ - - rtems_initialize_executive_late( bsp_isr_level ); - - /* - * Returns when multitasking is stopped - * This allows our destructors to get run normally - */ - - fflush( stdout ); - fflush( stderr ); - return 0; - } -} diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c deleted file mode 100644 index c2d2eaf88c..0000000000 --- a/c/src/lib/libbsp/unix/posix/timer/timer.c +++ /dev/null @@ -1,65 +0,0 @@ -/* timer.c - * - * This file manages the interval timer on a UNIX BSP. - * - * NOTE: It is important that the timer start/stop overhead be - * determined when porting or modifying this code. - * - * COPYRIGHT (c) 1989-2003. - * 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 -#include -#include - -struct timeval Timer_start; -struct timeval Timer_stop; -struct timezone Time_zone; - -bool benchmark_timer_find_average_overhead; - -void benchmark_timer_initialize() -{ - gettimeofday( &Timer_start, &Time_zone ); -} - -#define AVG_OVERHEAD 0 /* It typically takes xxx microseconds */ - /* (XX countdowns) to start/stop the timer. */ -#define LEAST_VALID 10 /* Don't trust a value lower than this */ - -int benchmark_timer_read() -{ - int total; - - gettimeofday( &Timer_stop, &Time_zone ); - - if ( Timer_stop.tv_sec == Timer_start.tv_sec ) - total = Timer_stop.tv_usec - Timer_start.tv_usec; - else { - total = 1000000 - Timer_start.tv_usec; - total += (Timer_stop.tv_sec - Timer_start.tv_sec - 1) * 1000000; - total += Timer_stop.tv_usec; - } - - if ( benchmark_timer_find_average_overhead == true ) - return total; /* in countdown units */ - else { - if ( total < LEAST_VALID ) - return 0; /* below timer resolution */ - return total - AVG_OVERHEAD; - } -} - -void benchmark_timer_disable_subtracting_average_overhead( - bool find_flag -) -{ - benchmark_timer_find_average_overhead = find_flag; -} diff --git a/c/src/lib/libbsp/unix/posix/times b/c/src/lib/libbsp/unix/posix/times deleted file mode 100644 index 28811e37ba..0000000000 --- a/c/src/lib/libbsp/unix/posix/times +++ /dev/null @@ -1,10 +0,0 @@ -# -# Timing Test Suite Results for the UNIX Simulator BSP -# -# $Id$ -# - -The times when running on the UNIX simulator are irrelevant. They vary based -on a variety of factors including host OS, host configuration, and system load. -The intent of the UNIX simulator is to provide a testing and prototyping -environment not to compete with the "normal" embedded role of RTEMS. diff --git a/c/src/lib/libbsp/unix/posix/tools/.cvsignore b/c/src/lib/libbsp/unix/posix/tools/.cvsignore deleted file mode 100644 index 1421df2837..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/.cvsignore +++ /dev/null @@ -1,12 +0,0 @@ -aclocal.m4 -autom4te*.cache -config.cache -config.log -config.status -configure -looptest -Makefile -Makefile.in -runtest -semdump -shmdump diff --git a/c/src/lib/libbsp/unix/posix/tools/ChangeLog b/c/src/lib/libbsp/unix/posix/tools/ChangeLog deleted file mode 100644 index 28e973e73d..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/ChangeLog +++ /dev/null @@ -1,118 +0,0 @@ -2008-03-11 Joel Sherrill - - * runtest.in: Skip all fatal error tests. - -2007-09-04 Joel Sherrill - - * runtest.in: Add capture to list of interative tests to skip in batch - mode. - -2007-01-26 Ralf Corsépius - - * Makefile.am: Use MKDIR_P instead of mkdir_p. - -2006-12-02 Ralf Corsépius - - * configure.ac: New BUG-REPORT address. - -2006-10-17 Ralf Corsépius - - * configure.ac: Require autoconf-2.60. Require automake-1.10. - -2004-09-24 Ralf Corsepius - - * configure.ac: Require automake > 1.9. - -2004-01-30 Ralf Corsepius - - * configure.ac: Add RTEMS_ENV_RTEMSBSP. - -2004-01-14 Ralf Corsepius - - * Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. - Add PRE/TMPINSTALL_FILES to CLEANFILES. - -2003-12-12 Ralf Corsepius - - * Makefile.am: Reworked. - -2003-12-12 Ralf Corsepius - - * configure.ac: Require automake >= 1.8, autoconf >= 2.59. - -2003-12-11 Ralf Corsepius - - * Makefile.am: Misc cleanups and fixes. - -2003-10-17 Ralf Corsepius - - * configure.ac: Use AC_PATH_PROG(PERL,perl) instead of - RTEMS_PATH_PERL. - -2003-08-18 Ralf Corsepius - - * Makefile.am: Reflect having moved aclocal/. - -2003-08-16 Ralf Corsepius - - * Makefile.am: Reflect having moved automake/. - -2003-08-14 Joel Sherrill - - * runtest.in: Add fileio to list of interactive tests. - -2003-08-11 Ralf Corsepius - - * configure.ac: Use rtems-bugs@rtems.com as bug report email address. - -2003-03-06 Ralf Corsepius - - * configure.ac: Remove AC_CONFIG_AUX_DIR. - -2003-02-11 Ralf Corsepius - - * configure.ac: AM_INIT_AUTOMAKE([1.7.2]). - -2003-02-11 Ralf Corsepius - - * configure.ac: AC_PREREQ(2.57). - -2002-10-21 Ralf Corsepius - - * .cvsignore: Reformat. - Add autom4te*cache. - Remove autom4te.cache. - -2002-03-27 Ralf Corsepius - - * configure.ac: - AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). - AM_INIT_AUTOMAKE([no-define foreign 1.6]). - * Makefile.am: Remove AUTOMAKE_OPTIONS. - -2001-10-11 Ralf Corsepius - - * .cvsignore: Add autom4te.cache for autoconf > 2.52. - * configure.in: Remove. - * configure.ac: New file, generated from configure.in by autoupdate. - -2001-09-27 Ralf Corsepius - - * Makefile.am: Use 'TMPINSTALL_FILES ='. - -2000-11-09 Ralf Corsepius - - * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. - -2000-11-02 Ralf Corsepius - - * Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal. - -2000-10-27 Ralf Corsepius - - * Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros. - Switch to GNU canonicalization. - -2000-08-10 Joel Sherrill - - * ChangeLog: New file. diff --git a/c/src/lib/libbsp/unix/posix/tools/Makefile.am b/c/src/lib/libbsp/unix/posix/tools/Makefile.am deleted file mode 100644 index 84ff77aa61..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../../../../../aclocal - -transform = -bsptools_bindir = ${exec_prefix}/@RTEMS_BSP@/tests -bsptools_bin_SCRIPTS = runtest looptest - -if PERL -bsptools_bin_SCRIPTS += shmdump semdump -endif - -## HACK: install to build-tree -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 - -$(PROJECT_ROOT)/@RTEMS_BSP@/tests/looptest: looptest $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp) - $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/looptest -TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/looptest - -if PERL -$(PROJECT_ROOT)/@RTEMS_BSP@/tests/shmdump: shmdump $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp) - $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/shmdump -TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/shmdump - -$(PROJECT_ROOT)/@RTEMS_BSP@/tests/semdump: semdump $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp) - $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/semdump -TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/semdump -endif - -CLEANFILES = $(TMPINSTALL_FILES) - -include $(top_srcdir)/../../../../../automake/host.am diff --git a/c/src/lib/libbsp/unix/posix/tools/configure.ac b/c/src/lib/libbsp/unix/posix/tools/configure.ac deleted file mode 100644 index 44659edd6f..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/configure.ac +++ /dev/null @@ -1,31 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.60) -AC_INIT([rtems-c-src-lib-libbsp-unix-posix-tools],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) -AC_CONFIG_SRCDIR([runtest.in]) -RTEMS_TOP(../../../../../../..) - -RTEMS_CANONICAL_TARGET_CPU - -AM_INIT_AUTOMAKE([no-define foreign 1.10]) -AM_MAINTAINER_MODE - -RTEMS_ENV_RTEMSBSP - -RTEMS_PATH_KSH -AC_PATH_PROG(PERL,perl) - -AM_CONDITIONAL(PERL,test -n "$PERL") - -RTEMS_PROJECT_ROOT -RTEMS_TOOLPATHS - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile -runtest -shmdump -looptest -semdump]) -AC_OUTPUT diff --git a/c/src/lib/libbsp/unix/posix/tools/looptest.in b/c/src/lib/libbsp/unix/posix/tools/looptest.in deleted file mode 100644 index 0f6965fe2b..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/looptest.in +++ /dev/null @@ -1,93 +0,0 @@ -#!@KSH@ -p -# -# $Id$ -# - -# progname=`basename $0` -progname=${0##*/} # fast basename hack for ksh, bash - -# must be uppercase hex; dc is feeble minded -clicks_per_tick="1" -# default is 0x3 -hexbump=1 -iterations=10 - -USAGE=\ -"usage: $progname [ -opts ] file [ file ... ] - -o options -- specify options to be passed to runtest - -c clicks -- specify (hex) value for clicks / tick (default $clicks_per_tick) - -n iterations -- num times to loop thru specified tests (default $iterations) - -b hexbump -- increment clicks-per-ticks this much each loop (default $hexbump) - -v -- verbose" - -# log an error to stderr -prerr() -{ - echo "$*" >&2 -} - -fatal() { - [ "$1" ] && prerr $* - prerr "$USAGE" - exit 1 -} - -warn() { - [ "$1" ] && prerr $* -} - -# -# process the options -# -# defaults for getopt vars -# - -verbose="" -extra_options="" - -while getopts vo:c:n:b: OPT -do - case "$OPT" in - v) - verbose="yes";; - o) - extra_options="$OPTARG";; - c) - clicks_per_ticks="$OPTARG";; - n) - iterations="$OPTARG";; - b) - hexbump="$OPTARG";; - *) - fatal;; - esac -done -((shiftcount = $OPTIND - 1)) -shift $shiftcount - -args=$* - -# -# Run the tests -# After each run, rename 'log' to log.$clicks_per_tick -# - -tests="$args" - -while [ $iterations -gt 0 ] -do - ./runtest $extra_options -c $clicks_per_tick $tests - rm -rf log.$clicks_per_tick.OLD - [ -d log.$clicks_per_tick ] && mv log.$clicks_per_tick log.$clicks_per_tick.OLD - mv log log.$clicks_per_tick - - ((iterations = $iterations - 1)) - clicks_per_tick=`echo 16 o 16 i $clicks_per_tick $hexbump + p q | dc` -done - -exit 0 - -# Local Variables: *** -# mode:ksh *** -# End: *** - diff --git a/c/src/lib/libbsp/unix/posix/tools/runtest.in b/c/src/lib/libbsp/unix/posix/tools/runtest.in deleted file mode 100644 index 7a5eefa627..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/runtest.in +++ /dev/null @@ -1,255 +0,0 @@ -#!@KSH@ -p -# -# Run rtems tests on a POSIX-ish UNIX -# -# $Id$ -# - -trap "test_exit 1" 1 2 3 13 14 15 - -trap "test_exit 1" 1 2 3 13 14 15 - -# progname=`basename $0` -progname=${0##*/} # fast basename hack for ksh, bash - -USAGE=\ -"usage: $progname [ -opts ] test [ test ... ] - -c clicks -- specify (hex) value for clicks / tick - -v -- verbose - -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 $* -} - -# print args, 1 per line -ml_echo() -{ - for l - do - echo "$l" - done -} - -killem() -{ - kill -9 $pid $pid1 $pid2 2> /dev/null -} - - -killem() -{ - kill -9 $pid $pid1 $pid2 2> /dev/null -} - - -test_exit() -{ - exit_code=$1 - - killem - - killem - - rm -f ${logfile}.tmp* - - exit $exit_code -} - -# -# process the options -# -# defaults for getopt vars -# - -verbose="" -extra_options="" -clicks_per_tick="" -logdir=log -# how long can we run; rtems tests might run 300 seconds -max_run_time=400 -run_to_completion="yes" - -while getopts vo:c:l: OPT -do - case "$OPT" in - v) - verbose="yes";; - l) - logdir="$OPTARG";; - o) - extra_options="$OPTARG";; - c) - clicks_per_tick="$OPTARG";; - *) - 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)" - -for tfile in $tests -do - - tname=`echo $tfile | sed -e 's/\.exe$//'` - tname=`basename $tname` - - TEST_TYPE="single" - - case $tname in - capture* | monitor* | termios* | fileio* | pppd*) - if [ $run_to_completion = "yes" ] - then - warn "Skipping $tname; it is interactive" - continue - fi - ;; - *-node2*) - warn "Skipping $tname; 'runtest' runs both nodes when for *-node1" - continue;; - *-node1*) - tname=`echo $tname | sed 's/-node.*//'` - warn "Running both nodes associated with $tname" - TEST_TYPE="mp" - ;; - stackchk*|*fatal*|malloctest*|termio*) - warn "Skipping $tname; it locks up or takes a VERY long time to run" - continue - ;; - esac - - if [ $TEST_TYPE = "mp" ] - then - logfile1=$logdir/${tname}_1 - infofile1=$logfile1.info - logfile2=$logdir/${tname}_2 - infofile2=$logfile2.info - - rm -f ${logfile1} - rm -f ${logfile2} - - date=`date` - echo "Starting $tname at $date" - - ./${tname}-node1.exe > $logfile1 2>&1 & - pid1=$! - ./${tname}-node2.exe > $logfile2 2>&1 & - pid2=$! - - # Wait for both cpu's to complete, ensuring they don't run forever... - time_run=0 - while [ $time_run -lt $max_run_time ] - do - # sleep 5s at a time waiting for jobs to finish or timer to expire - # if job has exited, then we exit, too. - sleep 5 - kill -0 $pid1 2> /dev/null - running1=$? - kill -0 $pid2 2> /dev/null - running2=$? - if [ $running1 -eq 0 ] && [ $running2 -eq 0 ] # both still running - then - time_run=$((time_run + 5)) - if [ $time_run -ge $max_run_time ] - then - echo "$tname ran too long; killing it" - ran_too_long="yes" - fi - else - ran_too_long="no" - # if one is still running, have to kill them - if [ $running1 -ne $running2 ] - then - sleep 10 # give other node a chance to gracefully die - fi - break - fi - done - - # make sure they are gone - kill -9 $pid1 2> /dev/null - kill -9 $pid2 2> /dev/null - fi - - if [ $TEST_TYPE = "single" ] - then - logfile=$logdir/$tname - infofile=$logfile.info - - rm -f ${logfile} - - date=`date` - echo "Starting $tname.exe at $date" - - ./$tname.exe > $logfile 2>&1 & - pid=$! - - # Make sure it won't run forever... - time_run=0 - while [ $time_run -lt $max_run_time ] - do - # sleep 5s at a time waiting for job to finish or timer to expire - # if job has exited, then we exit, too. - sleep 5 - kill -0 $pid 2> /dev/null - running=$? - if [ $running -eq 0 ] - then - time_run=$((time_run + 5)) - if [ $time_run -ge $max_run_time ] - then - kill -9 $pid 2> /dev/null - ran_too_long="yes" - fi - else - ran_too_long="no" - break - fi - done - fi - - pid="" - -done - -test_exit 0 - -# Local Variables: *** -# mode:ksh *** -# End: *** - diff --git a/c/src/lib/libbsp/unix/posix/tools/semdump.in b/c/src/lib/libbsp/unix/posix/tools/semdump.in deleted file mode 100644 index 53710a629e..0000000000 --- a/c/src/lib/libbsp/unix/posix/tools/semdump.in +++ /dev/null @@ -1,59 +0,0 @@ -#!@PERL@ -# -# $Id$ -# -eval "exec @PERL@ -S $0 $*" - if $running_under_some_shell; - -# dump semaphore array values tony@divnc.com - -require 'sys/sem.ph'; -require 'getopts.pl'; -&Getopts("vhi:k:"); # verbose, help, id, key - -if ($opt_h || ($opt_i && $opt_k)) -{ - print STDERR < $length) -{ - die "offset ($offset) and length ($print_length) go beyond end of segment ($length bytes)"; -} - -printf("KEY: 0x%X (%d) ", $key, $key) if ($key); -printf "ID: $id\n"; -printf " %d bytes (0x%X), %d words, logical base is 0x%X\n", - $length, $length, $length / 4, $base; -if ($offset || ($print_length != $length)) -{ - printf " printing %X (%d) bytes starting at offset 0x%X (%d)\n", - $print_length, $print_length, $offset, $offset; -} -printf "\n"; - -if ( ! shmread($id, $shm_data, $offset, $print_length)) -{ - die "could not attach and read from shmid $id: $!"; -} - -# the dump code below derived from "Real Perl Programs" example "xdump" -# from Camel book - -$base += $offset; -$offset = 0; -for ($len = $print_length; $len >= 16; ) -{ - $data = substr($shm_data, $offset, 16); - - @array = unpack('N4', $data); - $data =~ tr/\0-\37\177-\377/./; - printf "%8.8lX %8.8lX %8.8lX %8.8lX %8.8lX |%s|\n", - $base, @array, $data; - - $offset += 16; - $base += 16; - $len -= 16; -} - -# Now finish up the end a byte at a time - -if ($len) -{ - $data = substr($shm_data, $offset, $len); - @array = unpack('C*', $data); - for (@array) - { - $_ = sprintf('%2.2X', $_); - } - - push(@array, ' ') while $len++ < 16; - - $data =~ tr/\0-\37\177-\377/./; - $data =~ s/[^ -~]/./g; - - printf "%8.8lX ", $base; - printf "%s%s%s%s %s%s%s%s %s%s%s%s %s%s%s%s |%-16s|\n", - @array, $data; -} - -- cgit v1.2.3