Commit Graph
1297 Commits
Author SHA1 Message Date
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 bf2447953c Incorrect error status returned. Noted by Andrew Klossner
<andrew@pogo.wv.tek.com>.
2000-02-04 16:32:38 +00:00
Joel Sherrill edb2176cd5 Incorrect error status returned. Noted by Andrew Klossner
<andrew@pogo.wv.tek.com>.
2000-02-04 16:09:38 +00:00
Joel Sherrill b452a4023c Changed behavior to match that expected by EPICS test code. Reported by
Eric Norum <eric@cls.usask.ca>.
2000-02-03 22:20:41 +00:00
Joel Sherrill 4bf1801d0d Patches rtems-rc-20000118-7.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains the automake files for libnetworking plus a couple of
minor fixes.  [Now only one unused/unsupported Makefile.in remains
(./c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in).]

    To apply:
        patch -p1 < rtems-rc-20000118-7.diff
        /bin/sh rtems-rc-20000118-7.rm
        /bin/sh rtems-rc-20000118-7.add
        ./bootstrap

    Notes:
    * I have tested this one by building all BSPs for m68k, powerpc, sh and
      unix with toolchains built since last weekend.
    * I did not touch libnetworking's directory layout.
2000-02-03 13:21:38 +00:00
Joel Sherrill 1382cea3b1 Fixed spelling errors. 2000-02-03 13:18:21 +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 4c46630639 Patch rtems-rc-20000118-1.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
that contains:

  * cleanups to configuration files
  * A reworked gccnewlib.spec.in: I have reformated it for enhanced
    readability and added more rtems-base packages. It now should be free of
    any installation conflicts (If there still remain some, they should be
    regarded as bugs).
  * A fix to the bin2boot RTEMS_BSP issue (make RTEMS_BSP="pc386 pc486"
    now works).
  * removes libbsp/bare/wrapup
  * Further cleanups
2000-01-31 15:15:10 +00:00
Joel Sherrill 318f591241 Added after report from Quality Quorum <qqi@world.std.com> that
pc686.cfg was not present.
2000-01-27 14:37:17 +00:00
Joel Sherrill 8d37343a5d Directive rtems_task_variable_get() added by Eric Norum. 2000-01-23 19:07:02 +00:00
Joel Sherrill f13b1c4e4a Removing unused file accidentally left in CVS. Discovered by
Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
2000-01-23 18:22:02 +00:00
Joel Sherrill 4a9b897304 Patch from Eric Norum <eric@cls.usask.ca> at the request of Jake
Janovetz <janovetz@tempest.ece.uiuc.edu> to return a status from
network initialization rather than panic'ing.  It changes a bunch
of rtems_panics to printfs and returns a status from
rtems_bsdnet_initialize_network().
2000-01-21 15:11:40 +00:00
Joel Sherrill c941a980cc Patch from Eric Norum <eric@cls.usask.ca> to implement this:
I'd like to propose a change to RTEMS task variables that I think would
    make them more useful.  I think that it is early enough in their
    existence to still make changes to their API.

    1) Change type from `int' to `void *'.
    2) Add extra argument to task_variable_add -- if non-NULL, a pointer to
    a `destructor' function to be called when the task exits.  This function
    would be called with that task's value of the task variable as its
    argument.  In many cases, the `dtor' function could be `free'.

    rtems_status_code rtems_task_variable_add (
      rtems_id tid, void **ptr, void (*dtor)(void *));
    rtems_status_code rtems_task_variable_delete (rtems_id tid, void **ptr);

    This would be all we'd need to cleanly and efficiently support C++
    per-thread exception information without dragging in all that POSIX API
    stuff.
2000-01-21 15:07:55 +00:00
Joel Sherrill e570c7617d Patch from Eric Norum <eric@cls.usask.ca> to remove warnings. 2000-01-21 14:49:31 +00:00
Joel Sherrill e49ebbfa1d Removed unused variable warning. 2000-01-14 18:37:59 +00:00
Joel Sherrill 4d1af2095e Removed no prototype of kill() warning. 2000-01-14 18:37:30 +00:00
Joel Sherrill 752badac5a Removed warning. 2000-01-14 14:55:37 +00:00
Joel Sherrill 53fb837afc POSIX message queues now include complete functionality including
blocking sends when the queue is full.  The SuperCore was enhanced
to support blocking on send.  The existing POSIX API was debugged
and numerous test cases were added to psxmsgq01 by Jennifer Averett.
SuperCore enhancements and resulting modifications to other APIs
were done by Joel.

There is one significant point of interpretation for the POSIX API.
What happens to threads already blocked on a message queue when the
mode of that same message queue is changed from blocking to non-blocking?
We decided to unblock all waiting tasks with an EAGAIN error just
as if a non-blocking version of the same operation had returned
unsatisfied.  This case is not discussed in the POSIX standard and
other implementations may have chosen differently.
2000-01-13 19:25:15 +00:00
Jennifer Averett 9c1c778d56 + Added comments 2000-01-13 18:32:38 +00:00
Jennifer Averett d65c376845 + Added and yellow line tested _CORE_message_queue_Flush_waiting_threads
and _CORE_message_queue_Insert_message for posix message queues.
+ Yellow line tested new source
2000-01-13 18:32:09 +00:00
Jennifer Averett e7d76dc8a9 Added comment. 2000-01-13 18:23:42 +00:00
Jennifer Averett d78c6fe3d3 + Comment cleanup 2000-01-13 18:22:32 +00:00
Jennifer Averett 661ff9a7f6 Removed referance to rtems error.
Added correct include file.
2000-01-13 18:22:09 +00:00
Jennifer Averett b0461cd4b4 Added comment to indicate this path does not occur. 2000-01-13 17:13:12 +00:00
Jennifer Averett ea2c1d6301 + Added code for waiting send
+ Yellow lined tested routine with Posix message queue test (01)
2000-01-12 20:22:04 +00:00
Jennifer Averett e38cb52d2d Debugged and yellow line tested routines. 2000-01-12 18:47:22 +00:00
Jennifer Averett 68b0569430 + Modified return codes
+ Added messsage size check
+ Debugged and yellowed out routine
2000-01-12 18:46:54 +00:00
Jennifer Averett bcbc50a81c + Added signal processing.
+ Yellow line tested source.
2000-01-12 18:44:19 +00:00
Jennifer Averett 352d01e0d3 + Modified to correct return codes.
+ Removed extra flag attribute from message queue structure.
+ Yellow-lined all posix message queue routines.
2000-01-12 18:43:21 +00:00
Jennifer Averett 70329c80ea + Changed call from core flush to core close routine. This flushes waiting
queues as well as the messages.
2000-01-12 18:41:14 +00:00
Jennifer Averett 399ba0690c + Removed name validation code (this was already done in nametoid. 2000-01-12 18:40:18 +00:00
Joel Sherrill 75582835c7 Fixed spacing. 2000-01-11 15:43:16 +00:00
Joel Sherrill 4fa5eaee52 This code did not return properly when a process oriented signal
was pending.  Reported by Wayne Bullaughey <wayneb@cacdsp.com>.
2000-01-11 15:42:05 +00:00
Joel Sherrill 19642e2cab Removed definition of USHRT_MAX to remove lots of redefinition warnings. 2000-01-10 21:22:23 +00:00
Joel Sherrill 70af0ea116 Don't look at the object information structure for threads/tasks
for APIs that are not configured.  This resulted in weird behavior
when ITRON was disabled on some targets.
2000-01-10 18:47:58 +00:00
Joel Sherrill 89184f94db Corrected spacing. 2000-01-06 15:31:24 +00:00
Joel Sherrill 0312d81f38 Fixed comment thanks to John M. Mills <jmills@tga.com>. 2000-01-05 23:01:05 +00:00
Joel Sherrill 5870ac5567 Added support for simple binary semaphores in addition to the high
power binary/mutex style semaphores already supported by RTEMS.  This
was done at the request of Eric Norum <eric@cls.usask.ca> in support
of his effort to port EPICS to RTEMS.  This change consisted of
changing the nesting_allowed boolean into a lock_nesting_behavior
enumerated value as well as allowing the core mutex object to optionally
support ensuring that the holder of a binary semaphore released it.
Finally, a more subtle enhancement was to allow the non-holder to release
a priority inheritance/ceiling mutex and still allow the holding task
to return to its original priority.
2000-01-05 22:19:21 +00:00
Joel Sherrill 28adcfd9ec Added message priority parameter returned by core support routine. 2000-01-05 22:14:09 +00:00
Joel Sherrill c0d405ca01 Added new message priority parameter as returned by core support routine. 2000-01-05 22:13:15 +00:00
Joel Sherrill 3a8b95e207 Spacing corrected. 2000-01-05 21:32:57 +00:00
Joel Sherrill db6ec79e6c Fixed recursive release for mutexes with nesting allowed. 2000-01-05 18:30:09 +00:00
Jennifer Averett b302d527c7 + Added return priority from message seize.
+ Changed priority to be based off of min and max int.
2000-01-05 17:20:07 +00:00
Jennifer Averett 466b8882ce Added the recording of the submit type. 2000-01-05 17:18:51 +00:00
Jennifer Averett 58243b42f5 + Added return of the message priority. 2000-01-05 17:18:08 +00:00
Jennifer Averett 65800393f6 Added priority conversion between POSIX and core. 2000-01-05 17:16:48 +00:00
Jennifer Averett c5858efa68 Added priority conversion between POSIX and core priorities. 2000-01-05 17:16:02 +00:00
Jennifer Averett 3ebd4c1254 + Changed priority to the POSIX priority type.
+ Added priority validation
+ Changed to call correct core routine.
+ Added priority conversion
+ Resolved return type problems.
2000-01-05 17:13:50 +00:00
Jennifer Averett fcd0c90630 + Added check for reading from a write only queue.
+ Added ability to return message priority from the core.
2000-01-05 17:11:36 +00:00
Jennifer Averett cecd206a65 + Added check for name greater than PATH_MAX. 2000-01-05 17:09:36 +00:00