summaryrefslogtreecommitdiffstats
path: root/c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added comments.Joel Sherrill1999-06-111-1/+1
|
* Fixed Makefile.in to not attempt to install rtems.o twice from two differentJoel Sherrill1999-06-1110-10/+0
| | | | directories.
* Patch from Ian Lance Taylor <ian@airs.com>:Joel Sherrill1999-06-1112-6/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The select function is not particularly efficient when dealing with a large number of sockets. The application has to build a big set of bits and pass it in. RTEMS has to look through all those bits and see what is ready. Then the application has to look through all the bits again. On the other hand, when using RTEMS, the select function is needed exactly when you have a large number of sockets, because that is when it becomes prohibitive to use a separate thread for each socket. I think it would make more sense for RTEMS to support callback functions which could be invoked when there is data available to read from a socket, or when there is space available to write to a socket. Accordingly, I implemented them. This patch adds two new SOL_SOCKET options to setsockopt and getsockopt: SO_SNDWAKEUP and SO_RCVWAKEUP. They take arguments of type struct sockwakeup: struct sockwakeup { void (*sw_pfn) __P((struct socket *, caddr_t)); caddr_t sw_arg; }; They are used to add or remove a function which will be called when something happens for the socket. Getting a callback doesn't imply that a read or write will succeed, but it does imply that it is worth trying. This adds functionality to RTEMS which is somewhat like interrupt driven socket I/O on Unix. After the patch to RTEMS, I have appended a patch to netdemos-19990407/select/test.c to test the new functionality and demonstrate one way it might be used. To run the new test instead of the select test, change doSocket to call echoServer2 instead of echoServer.
* Patch from Eric Norum <eric@cls.usask.ca> to fix bug reported byJoel Sherrill1999-06-113-0/+6
| | | | | | | | | | | | | | | | | | Ian Lance Taylor <ian@airs.com>: Ian Lance Taylor wrote: > > In rtems-19990528, sbwait sets SB_WAIT in sb_flags. sowakeup checks > it. Why doesn't socket_select set it? > > I don't know that this is a bug--I haven't tried to create a test > case. However, it certainly looks odd. > > Ian Yes, there's a bug there. Sorry about that. It was introduced when I did some cleanup on the sleep/wakeup handling in rtems_glue.c.
* Do not use the RTEMS simpleioctl.h if networking is enabled sinceJoel Sherrill1999-06-091-1/+4
| | | | that subsystem provides a more robust version of ioctl.h.
* Modified to return an error when a bogus return address for theJoel Sherrill1999-06-091-0/+3
| | | | old_priority parameter is provided.
* Switched to using strcasecmp() since it is more portable.Joel Sherrill1999-06-092-4/+4
| | | | D. V. Henkel-Wallace <gumby@zembu.com> spotted this one.
* Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill1999-06-022-4/+12
| | | | | | | This patch fixes a nasty problem with build-tools/Makefile.am: When using install-sh instead of /usr/bin/install, only the first file gets installed during the preinstall stage.
* Removed "NO CTOR" from list of objects to be picked up. It now comes inJoel Sherrill1999-06-022-4/+2
| | | | via libbsp.a. Reported by Ian Lance Taylor <ian@airs.com>.
* Changes from Eric Norum to add a loop and limit on the length of timeJoel Sherrill1999-05-283-66/+96
| | | | the stack will wait for mbufs.
* changed version to 19990528Joel Sherrill1999-05-281-1/+1
|
* Don't install this executable. It should only be built.Joel Sherrill1999-05-281-2/+1
|
* Use fgrep instead of grep to avoid treating filenames as regular expressions.Joel Sherrill1999-05-282-2/+2
| | | | | grep found debugio.o when looking for debug.o and said there was a filename conflict incorrectly.
* Alignment corrected per Eric Norum's suggestion.Joel Sherrill1999-05-283-3/+6
|
* Corrected to include shared console driver.Joel Sherrill1999-05-281-1/+1
|
* At the request of Gumby, the cpu is now halted rather than spinningJoel Sherrill1999-05-281-1/+1
| | | | on a fatal exception.
* Renamed config.c to conscfg.c to avoid naming conflicts.Joel Sherrill1999-05-282-284/+1
|
* Renamed config.s to todcfg.c to avoid naming conflicts.Joel Sherrill1999-05-282-80/+1
|
* Renamed fatal.c to bspfatal.c to avoid name conflicts withJoel Sherrill1999-05-282-128/+1
| | | | Fatal Error handler in SuperCore.
* Renamed tod.c to coretod.c to remove conflicts with "Time Of Day"Joel Sherrill1999-05-282-240/+2
| | | | device drivers.
* Renamed clock.c to rtclock.c to avoid conflicts with clock driversJoel Sherrill1999-05-282-24/+1
| | | | in various BSPs.
* Switched from picking up the .rel for each subdirectory in theJoel Sherrill1999-05-2733-33/+33
| | | | | BSP (BSP_PIECES) to picking up the .o files. This should help reduce the minimum size of an application.
* Patch from Eric Norum <eric@pollux.usask.ca> to eliminate a panic when theJoel Sherrill1999-05-279-441/+264
| | | | network stack runs out of mbufs.
* Split out the routine rtems_assoc_name_bad().Joel Sherrill1999-05-2710-58/+166
|
* Removed usage of printf.Joel Sherrill1999-05-275-5/+5
|
* Split initialization and reserve resources from termios to reduceJoel Sherrill1999-05-277-119/+188
| | | | size of mininum application.
* Split out polled io, debug puts, and console reserve resources toJoel Sherrill1999-05-274-83/+146
| | | | reduce dependencies and shrink minimum executable size.
* Disabled running size_rtems until all file splitting is finished.Joel Sherrill1999-05-271-1/+1
|
* Regenerated.Joel Sherrill1999-05-2712-947/+1693
|
* Corrected so rtems.o is built and installed on all targets.Joel Sherrill1999-05-2710-31/+20
|
* Corrected macro names.Joel Sherrill1999-05-271-2/+6
|
* Initiated updating this to reflect split up.Joel Sherrill1999-05-261-2/+4
|
* Renamed to rtemstimer.c to avoid conflict with timer drivers in EVERYJoel Sherrill1999-05-202-53/+2
| | | | BSP as we transition to more .o's and less .rel's.
* Removed all post 4.0 changes.Joel Sherrill1999-05-203-243/+234
|
* Patch from Daniel Kelley <dank@icube.com>:Joel Sherrill1999-05-182-8/+8
| | | | | | I found a small buglet in the mips64orion _CPU_ISR_Set_level; the original was wiping out the level argument, and then comparing the current interrupt level with some random value of v0. See patch below.
* Regenerated.Joel Sherrill1999-05-1814-1695/+949
|
* Spacing correction.Joel Sherrill1999-05-181-1/+0
|
* Reworked to avoid pulling in the jump point entry in EVERY executable.Joel Sherrill1999-05-1711-19/+50
|
* Fixed some typos.Joel Sherrill1999-05-171-4/+4
|
* Split Interrupt Manager into one routine per file.Joel Sherrill1999-05-173-41/+63
|
* Split Signal Manager into one routine per file.Joel Sherrill1999-05-174-109/+158
|
* Dual-Ported Memory Manager split into one routine per file.Joel Sherrill1999-05-177-237/+351
|
* Split Partition Manager into one routine per file.Joel Sherrill1999-05-177-307/+429
|
* Split Timer Manager into one routine per file.Joel Sherrill1999-05-1710-618/+475
|
* Split Event Manager into one routine per file.Joel Sherrill1999-05-177-343/+460
|
* Split Rate Monotonic Manager into one routine per file.Joel Sherrill1999-05-179-417/+573
|
* Split the Semaphore Manager into one routine per file.Joel Sherrill1999-05-178-485/+771
|
* Moved some MP routines to semmp.c.Joel Sherrill1999-05-172-55/+54
|
* Forgot to actually remove the routines. :)Joel Sherrill1999-05-171-748/+0
|
* Split Message Manager into one routine per file.Joel Sherrill1999-05-1713-1/+1112
|