Commit Graph
1190 Commits
Author SHA1 Message Date
Jennifer Averett 2545646beb + Updated comments.
+ Corrected enable/disable of dispatch.
1999-11-22 16:12:19 +00:00
Jennifer Averett 94f81bbd8b + Corrected bug in error check. 1999-11-22 16:11:35 +00:00
Jennifer Averett 2c3af4c5da + Added description of routine to comment. 1999-11-22 16:10:25 +00:00
Jennifer Averett 0ca4fc83a4 + Corrected error processing code. 1999-11-22 16:09:55 +00:00
Jennifer Averett f85409cf9c + Added checks for NULL and NULL string names (for sem_open & sem_unlink). 1999-11-22 16:08:53 +00:00
Jennifer Averett 0ebf569402 + Cleaned up comments. 1999-11-22 16:07:02 +00:00
Joel Sherrill b7912a89de Changed name of W, X, and Y macros for fields in the Clock
Synthesizer Control Register to remove use of single letter names.
1999-11-22 14:25:01 +00:00
Joel Sherrill b22a19e1e7 Adding files not added as part of merger of SH2 port. 1999-11-22 13:46:50 +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 75f2b0b0ef Small patch (rtems-rc-19991117-5.diff) from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> to correct the constraints on the
inline assembly language macro for sh_disable_interrupt.
1999-11-22 13:12:48 +00:00
Joel Sherrill 97c465c223 Minor cleanup to reduce the code space. 1999-11-18 21:30:12 +00:00
Joel Sherrill 4a238002e7 Patch from "John M. Mills" <jmills@tga.com> with subsequent cleanup from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> that adds initial Hitachi SH-2
support to RTEMS.  Ralf's comments are:

    Changes:
    ------
    1. SH-Port:
    * Many files renamed.
    * CONSOLE_DEVNAME  and MHZ defines removed from libcpu.
    * console.c moved to libbsp/sh/shared, build in libbsp/sh/<BSP>/console
      applying VPATH.
    * CONSOLE_DEVNAME made BSP-specific, replacement is defined in bsp.h
    * MHZ define replaced with HZ (extendent resolution) in custom/*.cfg
    * -DHZ=HZ  used in bspstart.c, only
    * Makefile variable HZ used in bsp-dependent directories only.

    2. SH1-Port
    * clock-driver rewritten to provide better resolution for odd CPU
      frequencies. This driver is only partially tested on hardware, ie.
      sightly experimental, but I don't expect severe problems with it.
    * Polling SCI-driver added. This driver is experimental and completly
      untested yet. Therefore it is not yet used for the console (/dev/console
      is still pointing to /dev/null, cf. gensh1/bsp.h).
    * minor changes to the timer driver
    * SH1 specific delay()/CPU_delay() now is implemented as a function

    3. SH2-Port
    * Merged
    * IMO, the code is still in its infancy. Therefore I have interspersed
      comments (FIXME) it for items which I think John should look after.
    * sci and console drivers partially rewritten and extended (John, I hope
      you don't mind).
    * Copyright notices are not yet adapted
1999-11-18 21:22:58 +00:00
Jennifer Averett c38f5f162f Added EINVAL for passing a NULL pointer in. 1999-11-18 19:55:28 +00:00
Jennifer Averett 105d787200 Added routine to remove an object from the namespace. It just clears
its name in the name_table.  This was required by the POSIX semaphore
and message queue managers which support a concept of open, close, and
unlink.  The object becomes "invisible" to further opens following an
unlink but all open sessions remain active until they are closed.  This
requires that the removal of an object ID be separate from the removal
of its name.
1999-11-18 19:50:15 +00:00
Jennifer Averett 17879f4750 + Debuged to the point that you could open, unlink and close a semaphore.
but all paths have not been checked, yet.
1999-11-18 19:43:13 +00:00
Jennifer Averett c9ae846b0e Added a routine to remove a semaphore name from its namespace. 1999-11-18 19:41:34 +00:00
Jennifer Averett 40fe60a3cb Comment added. 1999-11-17 20:44:13 +00:00
Joel Sherrill 08311cc3a9 Updated copyright notice. 1999-11-17 17:51:34 +00:00
Jennifer Averett 9d9a3dd8d3 + Updated copyright information. 1999-11-17 16:47:58 +00:00
Joel Sherrill 5e96e91757 Updated Mailbox Manager submitted and split into multiple files. 1999-11-17 15:24:11 +00:00
Joel Sherrill 1c10acc7f3 Update from Andrew D. McDowell <amcdowel@cs.uah.edu> with modifications
by Joel and Jennifer based on experience merging the other managers
and cleaning them up.  No test code is available at this point.
1999-11-17 14:56:18 +00:00
Joel Sherrill aad726ebd4 Moved task_variable pointer to basic shared part of TCB instead of
RTEMS API extension to avoid problems when the extension is freed.
Eventually the task variable switch extension should become part
of the core context switch and the Ada tcb self implemented in
terms of it.
1999-11-16 22:56:38 +00:00
Jennifer Averett 4efe2b7a5d Added check to return passed if task is not suspended. 1999-11-16 22:47:23 +00:00
Jennifer Averett 0fa51b5b0a Added code to catch the error of suspend count exceding the counter value. 1999-11-16 22:46:55 +00:00
Jennifer Averett 9181246072 Fixed bug. 1999-11-16 22:45:51 +00:00
Jennifer Averett 18c315533b Added handler for fsync. For the memfile it is the same as the data sync. 1999-11-16 22:45:33 +00:00
Joel Sherrill 65a38bcab7 Web server uses the POSIX API. Therefor, it must be disabled when the
POSIX API is disabled.
1999-11-16 16:14:37 +00:00
Joel Sherrill ce18601a7d Removed start subdirectory and distributed contents to the appropriate
places under the libbsp tree.
1999-11-16 16:13:26 +00:00
Joel Sherrill 0cb7cb9e7c Added comments. 1999-11-16 16:10:39 +00:00
Joel Sherrill d3fdf45917 Now use _Thread_Reset(). 1999-11-16 16:09:50 +00:00
Joel Sherrill 88cb6b22ab Added threadreset.c. 1999-11-16 16:08:10 +00:00
Joel Sherrill f6d082148b Added prototype for _Thread_Reset() and numerous comments. 1999-11-16 16:07:52 +00:00
Joel Sherrill c09454282b Only check for System V IPC if multiprocessing is enabled. The unix
port only uses System V IPC for shared memory and semaphores to
communicate between nodes in a multiprocessor configuration.  If you
disable multiprocessing, then this code should be unused.  Thus systems
like Cygwin which are POSIX but do not support System V IPC should
not work.
1999-11-16 16:07:17 +00:00
Joel Sherrill f4b76ab569 Fixed so can be included multiple times in the executive source. 1999-11-16 16:04:51 +00:00
Joel Sherrill 31473b7107 Works now.
Removed times() since the version in the C Library support code is
fine.
1999-11-16 16:03:21 +00:00
Joel Sherrill 165fe39ff2 Return a reasonable error other than ENOSYS. 1999-11-16 16:01:54 +00:00
Joel Sherrill 7fec3b7a36 Added call to _Watchdog_Remove to remove the sporadic timer. It was
being reinserted onto the ticks chain.
1999-11-16 16:01:32 +00:00
Joel Sherrill 2c0e896e9c Moved utsname from "build for now" (unimplemented files) to the main
list of C_PIECES since it is now implemented.
1999-11-16 16:00:11 +00:00
Joel Sherrill d280ce18b8 Comment fixed when adding prototype for
_ITRON_Message_buffer_Translate_core_message_buffer_return_code.
1999-11-16 15:58:21 +00:00
Joel Sherrill bd462d1146 New file. 1999-11-16 15:52:49 +00:00
Joel Sherrill 817031fa5c New file. 1999-11-16 15:28:03 +00:00
Joel Sherrill c7016198fa Added. 1999-11-16 15:27:52 +00:00
Joel Sherrill b88691c30f Source and destination arguments to strncpy were swapped. This mistake
was made in the conversion of bcopy() to strncpy().
1999-11-16 15:26:29 +00:00
Joel Sherrill 80fd69998a Removed nanosleep() since it is now in its own file. 1999-11-15 22:19:51 +00:00
Jennifer Averett 40aac293b7 Returned third parameter for a NULL name to the objects open call. 1999-11-15 21:37:56 +00:00
Jennifer Averett 2578970553 + Fixed files to consistantly use a case of the location after calls
to ITRON_Task_Get.
+ Modified to consistantly call _ITRON_return_errorno with E_OK.
+ Optimized the code to not disable dispatch prior to checking input values.
1999-11-15 21:35:14 +00:00
Jennifer Averett 1ae60eb4e6 + Modified to use new Thread_Reset routine instead of the restart method. 1999-11-15 21:31:28 +00:00
Joel Sherrill 9da09940e4 Split ITRON Message Buffer Manager into multiple files. 1999-11-15 17:15:58 +00:00
Joel Sherrill fb27af7637 Split ITRON semaphore manager into multiple files. 1999-11-15 16:39:01 +00:00
Joel Sherrill d8f3f65be0 + Changed validation of the_thread to validation of location.
+  Modified correct return path to call _ITRON_return_errorno( E_OK ) instead
   of enabling dispatching and returning E_OK.
1999-11-12 21:23:34 +00:00