Commit Graph

49 Commits

Author SHA1 Message Date
Joel Sherrill
80fe968c12 2002-03-20 Chris Johns <ccj@acm.org>
* monitor/mon-command.c: Per PR192 the RTEMS monitor makes everything
	lowercase. The capture engine need to set triggers or watches on task
	with uppercase names.
	Also stop the monitor repeating command when enter is pressed.
2002-05-01 22:33:52 +00:00
Joel Sherrill
3559e90ea5 2002-04-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/mon-monitor.c: Replace done with return (gcc3).
2002-04-04 18:22:36 +00:00
Joel Sherrill
be2cd08cb5 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]).
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* cpuuse/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* devnull/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* dummy/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* dumpbuf/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* monitor/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* mw-fb/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rootfs/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* rtmonuse/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* shell/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* stackchk/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* untar/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:49:39 +00:00
Joel Sherrill
ab09d08366 2002-03-20 Chris Johns <ccj@acm.org>
* PR148.
	* monitor/mon-prmisc.c: Fixed to print task states correctly.
2002-03-20 14:33:00 +00:00
Joel Sherrill
aea9bb4695 2001-09-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* untar/Makefile.am: Use 'PREINSTALL_FILES ='.
	* monitor/Makefile.am: Use 'PREINSTALL_FILES ='.
	* shell/Makefile.am: Use 'PREINSTALL_FILES ='.
	* devnull/Makefile.am: Use 'PREINSTALL_FILES ='.
	* dumpbuf/Makefile.am: Use 'PREINSTALL_FILES ='.
	* mw-fb/Makefile.am: Use 'PREINSTALL_FILES ='.
	* stackchk/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rtmonuse/Makefile.am: Use 'PREINSTALL_FILES ='.
	* cpuuse/Makefile.am: Use 'PREINSTALL_FILES ='.
	* rootfs/Makefile.am: Use 'PREINSTALL_FILES ='.
2001-09-28 13:34:40 +00:00
Joel Sherrill
ecb5f95413 2001-08-09 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
* monitor/mon-command.c: Add support for partial command matching.
	The monitor used to have this functionality before it was overhauled
	to support addition of user commands.
2001-08-09 21:39:34 +00:00
Joel Sherrill
b2712e35b9 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* monitor/mon-prmisc.c: Correct print line.
	* shell/Makefile.am: Added new file telnetd.c.
	* shell/telnetd.c, shell/telnetd.h, shell/pty.c: New files.
	* shell/shell.c, shell/cmds.c, shell/shell.h: Numerous improvments:
	   - The shell_init has a new parameter 'forever' because in
	     /dev/console you need that this process runs forever but in
	     tcp/ip not. (respawn?)
	   - A new task for every session opened trought tcp/ip telnet client.
	     (the chargen,daytime and more are possible of implementation but
	     I ask me if they are necesary)
	   - Exit from the session delete the task and when the client fails too.
	   - More cmds have been implemented. (very reduced version of these)
	     umask, chmod, id, whoami, rm, cat, ...
	   - A reduced line edit has been implemented.
	       Ctrl-C abort the input,
	       Ctrl-d in the first position gives EOF (logout).
	       '\b' and DEL makes the rubout operation.
	       I think that readline() for every session spents a lot of resources.
2001-05-24 21:58:39 +00:00
Joel Sherrill
d72caa64cc 2001-04-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shell/cmds.c, shell/shell.c: Remove fileno-hacks.
	* monitor/mon-symbols.c: Remove #undef __STRICT_ANSI__.
2001-05-07 13:17:25 +00:00
Joel Sherrill
974d213fc9 2001-02-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/mon-command.c: Use #if defined(RTEMS_UNIX).
2001-02-12 14:51:46 +00:00
Joel Sherrill
620e82636b 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* untar/Makefile.am, monitor/Makefile.am, dummy/Makefile.am,
	devnull/Makefile.am, dumpbuf/Makefile.am, mw-fb/Makefile.am,
	stackchk/Makefile.am, rtmonuse/Makefile.am, cpuuse/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:26:26 +00:00
Joel Sherrill
f6630d445a 2000-09-28 Joel Sherrill <joel@OARcorp.com>
* monitor/mon-driver.c: Accounted for addition of "_entry" to
	fields in rtems_driver_address_table.
2000-09-28 20:23:34 +00:00
Joel Sherrill
7fcc26ac64 2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpuuse/Makefile.am, dummy/Makefile.am, dumpbuf/Makefile.am,
	monitor/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am,
	untar/Makefile.am, wrapup/Makefile.am, mw-fb/Makefile.am:
	Include compile.am.
2000-09-05 15:32:34 +00:00
Joel Sherrill
ca7858bb88 Port of RTEMS to the Texas Instruments C3x/C4x DSP families including
a BSP (c4xsim) supporting the simulator included with gdb.  This port
was done by Joel Sherrill and Jennifer Averett of OAR Corporation.
Also included with this port is a space/time optimization to eliminate
FP context switch management on CPUs without hardware or software FP.

An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8)
on this CPU.  This required addressing alignment checks and assumptions
as well as fixing code that assumed sizeof(unsigned32) == 4.
2000-07-26 19:28:11 +00:00
Joel Sherrill
6f6ddc0011 Added RTEMS_CPU_HAS_16_BIT_ADDRESSES constant to disable code
that breaks when the target has 16 bit address space.  One of the H8
multilibs is a 16-bit address space CPU.  When a real attempt is
made to support this CPU model, the code that assumes an address
is 32 bits will have to change.  This constant is probably not
flagging all impacted code.
2000-06-29 22:33:05 +00:00
Joel Sherrill
32e2554f10 Patch rtems-4.5-beta3-mon.diff from Chris Johns <cjohns@cybertec.com.au>
to:

I have also added the ability to register and unregister commands. This
allows me to create a set of monitor commands for the network stack plus
basic memory dump/patch commands (needs a working probe interface). I
will also look at a basic ls/cd/rm/mv/cp command set at some stage.

I have been thinking about changing the monitor in the future to more
like a light weight RTEMS shell, `eshell' for embedded shell. This is a
story for another day but is a process or getting the commands to map to
the filesystem (eg, major=commands, minor=command) and supporting an
environment. The filesystem provide a structure for the commands.
2000-06-14 17:22:59 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
bf85b19188 Patch rtems-rc-4.5.0-13-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
adds .cvsignore.
2000-04-13 14:37:14 +00:00
Joel Sherrill
70810dcd89 Patches rtems-rc-20000204-0.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains:

* Removes remaining (now illegal) references to $(SRC) from a couple of
  Makefile.ams
* Removes duplicate AC_CONFIG_SUBDIRS macro from c/configure.in
* Moves ENABLE_LIBCDIR into RTEMS_PROG_C[C|XX]_FOR_TARGET (hides LIBCDIR
  from most configure scripts, i.e. LIBCDIR becomes less visible)
* Adds RTEMS_PROG_C[C|XX]_FOR_TARGET and RTEMS_CANONICALIZE_TOOLS to
  libbsp/*/configure.ins (A minor bug in previous implementations, which
  only has an impact when switching to GNU/Cygnus canonicalization)
* Cleans up several bogus comments.
* Removes MKLIB
* Switches the version number to 4.5.0 (for testing version number
  handling)
2000-02-08 22:33:25 +00:00
Joel Sherrill
4e36a2f133 Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> that contain:

    * Modifications, (minor) corrections, cleanups to most existing
      Makefile.ams
    * Adds automake support to all remaining BSPs which have not yet been
      converted to automake.
    * Makefile.am for all remaining wrapup/Makefile.ams
2000-01-31 15:27:02 +00:00
Joel Sherrill
c629812c01 Removed warnings. 1999-12-13 22:10:45 +00:00
Joel Sherrill
d5b004b6e3 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
to convert the libmisc directory from Makefile.in to Makefile.am.
1999-11-23 13:52:59 +00:00
Joel Sherrill
9608320702 Patch rtems-rc-19991117-4.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
.. a major configuration cleanup
    ... major enhancement of automake support.

    ... and it contains a *major*  breakthough:

    Automake support for libchip and libmisc *LEAF* directories.

    To implement this I have used several nasty tricks
        * The basical trick is to wrap an old Makefile.in's contents into a
          Makefile.am and still continue to use (i.e include) the old
          *.cfg files.

        * Replaced each INSTALL_IF_CHANGE and INSTALL_VARIANT with make
          dependencies
        * Add a gnu-make ifdef AUTOMAKE to main.cfg to avoid conflicts between
          automake and RTEMS make rules
        * Replaced each install:: and preinstall:: rule with make dependencies
        * Replaced SUB_DIRS with SUBDIRS in all Makefile.ins (Automake
          convention)
        * Removed each manually added autoconf substitution which automake
          performs automatically.

    This is not yet full automake support, because using the temporary
    installation directory, preinstallation in general and building variants
    are in contradiction to automake's basic working principles ...

    ... the new Makefile.ams work still somewhat clumsy
    ... nevertheless they work (quite well).

    WARNING:

    At first glance this patch is small, but
        * it affects the whole configuration system.
        * it opens the road to introducing automake to all Makefile.ins
          currently not being under automake control.

    JOEL> Does this remove or add any files?

    Both, all Makefile.ins below libchip and libmisc get replaced with
    Makefile.ams.
1999-11-22 13:41:11 +00:00
Joel Sherrill
458bd343e2 This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP.  On this
sweep, use of BSP_Configuration and Cpu_table was eliminated.

A significant part of this modification was the addition of
macros to access fields in the RTEMS configuration structures.

This is necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves.  This started after
comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1999-11-05 16:44:02 +00:00
Joel Sherrill
6fc973e39b Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Here is another fix, which addresses a few more or less severe bugs in
    configuration and unix/posix:

    * Configuration fix: c/src/lib/configure.in didn't handle RDBG correctly

    * Configuration fix: make depend was non-functional in
      c/src/lib/libc/Makefile.in
    * Configuration fix: stray comment removed from aclocal/target.m4

    * RTEMS fix: termios support for unix/posix now uses the host's headers
      only (was completely broken).
    - Don't install RTEMS's newlib sys/termios.h for unix (sys/termios.h
      apparently is a newlib specific header)
    - To be able to compile RTEMS's  termios.c with glibc2.1, glibc-2.1
      needs __USE_MISC, which is a private define from gcc's features.h, being
      defined only when _BSD_SOURCE of _SVID_SOURCE is defined.  RTEMS's
      termios apparently implements BSD, thus -D_BSD_SOURCE was added to
      Linux-posix.cfg.
    - Conflicting definitions for  __USE_MISC and _BSD_SOURCE inside of
      RTEMS codes removed due to definition of _BSD_SOURCE on the toplevel.

    This fix has been tested with linux/posix (primary glibc2.1 native),
    linux/posix (secondary libc5 native), sh/gensh1, i386/pc386 and a couple
    of other bsp's/CPU.

    To apply:

        cd <srcdir>
        patch -p1 < rtems-rc-19990709-9.diff

    and
        aclocal -I aclocal && automake && autoconf
        cd c/src/lib; autoconf

    or
        ./autogen
1999-08-18 16:49:52 +00:00
Joel Sherrill
97e2729d1a Added --disable-multiprocessing flag and modified a lot of files to make
it work.
1998-11-23 17:38:09 +00:00
Joel Sherrill
7ff01ac4d3 Increased stack space of the monitor task. 1998-04-06 21:41:50 +00:00
Joel Sherrill
421dfef68e Corrected Linux port for glibc2 1998-01-30 20:59:22 +00:00
Joel Sherrill
2936b425fd Solaris port updates from Chris Johns 1998-01-23 17:45:05 +00:00
Joel Sherrill
c436b5b84d Fixed indexing bug reported by Phil Wilshire. 1997-12-07 16:58:13 +00:00
Joel Sherrill
bbb281698f Removed warnings. 1997-11-29 18:21:00 +00:00
Joel Sherrill
a18ccfe0a7 Fixed a number of warnings regarding comparisons between signed and
unsigned numbers.
1997-10-21 18:39:49 +00:00
Joel Sherrill
48220699fd Fixed endian problem in printing object names. 1997-10-21 18:39:27 +00:00
Joel Sherrill
5beb562450 Cleaned up as part of adding the Monitor test. 1997-09-21 16:58:57 +00:00
Joel Sherrill
9ffcaa4a8a changed signed int to unsigned int to eliminate a warning. 1997-04-07 21:30:58 +00:00
Joel Sherrill
be95da0e19 casts added to numerous arguments, prototypes corrected, and
proper include files added.
1996-09-18 20:55:13 +00:00
Joel Sherrill
e6d4b1d086 added initial posix configuration support 1996-05-28 13:13:34 +00:00
Joel Sherrill
8389628c1b updates from Tony Bennett 1996-04-22 16:53:46 +00:00
Joel Sherrill
e6424462c3 As part of reducing visibility into rtems and hiding the .inl files
from the application code, this file required more visibility than
is given by default to application code.
1996-03-06 21:37:43 +00:00
Joel Sherrill
72c440eea7 Update from Tony Bennett (tbennett@divnc.com) 1996-01-17 20:13:45 +00:00
Joel Sherrill
c64e4ed482 updates from Tony Bennett for PA and UNIX ports 1996-01-15 21:50:28 +00:00
Joel Sherrill
11290355c9 all targets compile .. tony's patches in place 1995-09-29 17:19:16 +00:00
Joel Sherrill
3652ad356b Minor bug fixes to get all targets compilable and running. The
single biggest changes were the expansion of the workspace size
macro to include other types of objects and the increase in the
minimum stack size for most CPUs.
1995-09-19 14:53:29 +00:00
Joel Sherrill
3a4ae6c210 The word "RTEMS" almost completely removed from the core.
Configuration Table Template file added and all tests
modified to use this.  All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines.  Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized.  These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver.  Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.
1995-09-11 19:35:39 +00:00
Joel Sherrill
7f6a24abdd Added unused priority ceiling parameter to rtems_semaphore_create.
Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.

Made internal threads their own object class.  This now uses the
thread support routines for starting and initializing a thread.

Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.

Added an RTEMS API specific data area to the thread control block.

Beginnings of removing the word "rtems" from the core.
1995-08-28 15:30:29 +00:00
Joel Sherrill
5250ff39f0 Moved _Thread_Information -> _RTEMS_tasks_Information.
Added a table of object information control blocks.

Modified _Thread_Get so it looks up a thread regardless of which
thread management "entity" (manager, internal, etc) actually "owns" it.
1995-08-23 21:06:31 +00:00
Joel Sherrill
9863dbfdd4 + Added object type field to object id.
+ Added name pointer to Object_Control.

+ Modified Object Open and Close to address name field.

+ Removed name as separate element from Thread and Proxy Control.

+ Added parameter "object class" to calls to Initialize Information
1995-08-18 21:42:58 +00:00
Joel Sherrill
b06e68ef1f Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@divnc.com) including the following major additions:

  + variable length messages
  + named devices
  + debug monitor
  + association tables/variables
1995-08-17 19:51:51 +00:00
Joel Sherrill
637df35f96 Ada95, gnat, go32 1995-07-12 19:47:25 +00:00
Joel Sherrill
ac7d5ef06a Initial revision 1995-05-11 17:39:37 +00:00