summaryrefslogtreecommitdiffstats
path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
1999-03-31Patch from Chris Johns <ccj@acm.org>:Joel Sherrill1-5/+13
joel@OARcorp.com wrote: > > Chris, > > sp09 fails on the rtems_port_delete(0) call. This is supposed to give an > invalid id error. I can't find any changes other than the unlimited > objects patch which would have tripped this so would appreciate it if you > could look into it. I suspect that this is a side-effect of the unlimited > objects patch. > It is me. > > Basically, there are 0 ports configured in sp09. The test ends up > dereferecing NULL in local_table[0] and comes up with a non-NULL invalid > pointer. > The issue is not actually allocating a local_table for an object type which has a maximum value of 0. I cannot remember the exact workings of the id values and the local_table. I might have changed the nature from the pre-unlimited change. As you know the id's are an interesting game where performance is most important. > > I know the problem could be solved by adding a check for index == 0. But > I hate to slow this path down. I think you may have changed the way the > object information structure gets initialized. > ---- CVS log ---- This change lets the unlimited and sp09 tests run on the posix Linux BSP. A static local variable `null_local_table' has been added. This variable is always set to NULL. The `**local_table' element of the information structure is set to point to this variable earily in the initialisation. If the object type has more than 0 elements the `local_table' element is updated. All object types which have 0 elements reference `null_local_table'. This change fixes the problem sp09 found yet does not add any extra processing to the critical `_Objects_Get_local_object' function. ---- CVS log ----
1999-03-31When compiled in debug mode, the POSIX threads inline file was notJoel Sherrill1-0/+1
included and we ended up with undefined references.
1999-03-31Patch from Eric Norum <eric@skatter.usask.ca> which changed the exitJoel Sherrill1-2/+1
sequence.
1999-03-30Removed warning for `#ifdef' argument starts with punctuation.Joel Sherrill1-1/+1
1999-03-30Removed warning for const removal.Joel Sherrill1-1/+1
1999-03-30Fixed typo where _POSIX_signals_Clear_process_signals was not prototypedJoel Sherrill1-1/+1
and _POSIX_signals_Set_process_signals was done twice.
1999-03-30Patch to add shutdown() routine from Tony R. Ambardar <tonya@ece.ubc.ca>.Joel Sherrill1-0/+25
1999-03-29Removed an uninitialized variable.Jennifer Averett1-4/+5
1999-03-24 Fix based on bug report from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill1-0/+25
There seems to be an ugly dependency between posix-headers and libcsupport. Configuring rtems with ../rtems-rc-19990324-0/configure \ --target=i386-rtems \ --prefix=<somewhere> \ --disable-posix "make RTEMS_BSP=pc386" results into: [...] /opt/rtems/bin/i386-rtems-gcc --pipe -B/users/rtems/src/multi/build/pc386/lib/ -specs bsp_specs -qrtems -I/users/rtems/src/multi/build/pc386/lib/include/networking -g -Wall -ansi -fasm -O4 -fomit-frame-pointer -c -o o-pc386/utime.o ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c In file included from ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:16: /opt/rtems/i386-rtems/include/utime.h:4: sys/utime.h: No such file or directory ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:24: warning: `struct utimbuf' declared inside parameter list ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:24: warning: its scope is only this definition or declaration, ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:24: warning: which is probably not what you want. ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c: In function `utime': ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:34: dereferencing pointer to incomplete type ../../../../../rtems-rc-19990324-0/c/src/lib/libc/utime.c:34: dereferencing pointer to incomplete type make[4]: *** [o-pc386/utime.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [all] Error 1 make[1]: *** [all] Error 1 make[1]: Leaving directory `/lfs/poseidon/users/rtems/src/multi/build/c' make: *** [all] Error 1 Apparently sys/utime.h is one of the posix headers and therefore gets not installed (I suppose this is correct). IMO, this probably indicates that sys/utime.h has to be moved to another include subdirectory and should not be part of the posix-package. [AFAIK, sys/*.h are system dependent headers, so why should it be a posix-header? - Hmm]
1999-03-23SPARC optimized version of IP checksum header routine. SubmittedJoel Sherrill1-0/+32
by Jiri Gaisler <jgais@ws.estec.esa.nl>.
1999-03-23Patch from Eric Norum <eric@skatter.usask.ca> to improve parsing ofJoel Sherrill2-0/+45
network interface names. This change does not introduce any compatibility problems.
1999-03-19Another cleanup patch for the previous rejected hunk.Joel Sherrill1-0/+1
1999-03-19A cleanup patch on fcntl.c from Eric Norum <eric@skatter.usask.ca> forJoel Sherrill1-0/+2
2 lines of code that did not get included when Joel tried to manually add a rejected patch.
1999-03-19Patch from Eric Norum <eric@skatter.usask.ca> that adds externalJoel Sherrill3-28/+72
fcntl support and an external fcntl handler for sockets.
1999-03-17Unlimited objects patch from Chris Johns <ccj@acm.org>. Email follows:Joel Sherrill8-147/+683
First, the unlimited patch. I have compiled the unlmited patch for the Linux posix BSP only and it seems to work cleanly. I would like a really major application run on this change before commiting as the changes are very core and significant. I am currently building all the tests to run. I have no targets suitable to test on at the moment. I have tested the patch for inline functions and macros. Turning macros on has found some core bugs. I have fixed these but have not run all the tests. Please review the patch for these changes. They are: 1) The conditional compilation for MP support broke the core messages code. You cannot embed a conditional macro in another macro. The Send and Urgent Send calls are macros. 2) User extensions handler initialisation now has two parameters. I have updated the macros to support the extra parameter. The patch also contains the gcc-target-default.cfg fix required to build the kernel. More of a by product than a fix for you.
1999-03-16Added ftpd server from Jake Janovetz <janovetz@tempest.ece.uiuc.edu>.Joel Sherrill2-0/+1093
1999-03-16Use proper include for libio.h.Joel Sherrill6-12/+6
1999-03-08Corrected bug where pointer to doubly linked blocks was being incorrectlyJoel Sherrill1-2/+34
calculated.
1999-03-08Added code to translate internal libio flags to POSIX style flags.Joel Sherrill1-3/+20
1999-03-08Added support for F_GETFL and F_SETFL.Joel Sherrill1-2/+3
1999-03-06Added F_GETFL support so the fdopen() implementation in newlib 1.8.1Joel Sherrill4-2/+43
would work. At the same time, the initial implementation of F_SETFL was added. A support routine was added to convert internal libio flags back to the POSIX style. Eventually the internal representation should be eliminated in the interest of simplicity and code reduction. This problem was reported by Jake Janovetz <janovetz@tempest.ece.uiuc.edu>.
1999-03-01Patch from Eric Norum <eric@skatter.usask.ca> to eliminate externalJoel Sherrill21-276/+61
IO handlers scheme that was implemented originally just to support sockets. The file system IO switch is more general and works fine.
1999-03-01Part of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill2-19/+19
> 5) rtems-rc-19990202-1.diff/reorg-install.sh > > reorg-install.sh fixes a Makefile variable name clash of RTEMS > configuration files and automake/autoconf standards. > Until now, RTEMS used $(INSTALL) for install-if-change. Automake and > autoconf use $(INSTALL) for a bsd-compatible install. As > install-if-change and bsd-install are not compatible, I renamed all > references to install-if-changed to $(INSTALL_CHANGED) and used > $(INSTALL) for bsd-install (==automake/autoconf standard). When > automake will be introduced install-if-change will probably be replaced > by $(INSTALL) and therefore will slowly vanish. For the moment, this > patch fixes a very nasty problem which prevents adding any automake file > until now (There are still more).
1999-02-24Changed IMFS to use IMFS_NAME_MAX as the maximum length of a basenameJoel Sherrill8-24/+34
rather then NAME_MAX. NAME_MAX is 255 and that lets IMFS chew up memory too fast. Perhaps in the future, the places in IMFS that put a maximum length name string on the stack and the jnode structure does not include a maximu length name string can be fixed so this is not a problem.
1999-02-24Corrected name of constant so this would compile.Joel Sherrill1-1/+1
1999-02-19Moved back up in tree.Joel Sherrill8-0/+4202
1999-02-19Moved asm.h back up in tree.Joel Sherrill14-0/+1728
1999-02-19Moved to proper rtems/scoreJoel Sherrill27-6045/+289
1999-02-18Part of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill34-0/+13100
> 4) rtems-rc-19990202-0.diff /reorg-score-cpu.sh > > reorg-score-cpu.sh reorganizes the cpu/<cpu>/* subdirectories in a > similar manner than previous reorg scripts did. rtems-rc-19990202-0.diff > contains the diffs after reorg-score-cpu.sh has been run on a > rtems-19981215 snapshot + my patches up to rtems-rc-19990131-2.diff. > > This patch is rather nasty and may break something. However, I've tested > it for about 10 different target/bsp pairs and believe to have shaken > out most bugs. I wonder about the following .h files that were not moved: a29k/asm.h a29k/cpu_asm.h i386/asm.h i960/asm.h m68k/asm.h m68k/m68302.h m68k/m68360.h m68k/qsm.h m68k/sim.h mips64orion/asm.h mips64orion/cpu_asm.h mips64orion/mips64orion.h no_cpu/asm.h no_cpu/cpu_asm.h powerpc/asm.h powerpc/mpc860.h sh/asm.h sparc/asm.h sparc/erc32.h
1999-02-18Yet another part of automake VI from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:Joel Sherrill7-2466/+0
> 4) rtems-rc-19990202-0.diff /reorg-score-cpu.sh > > reorg-score-cpu.sh reorganizes the cpu/<cpu>/* subdirectories in a > similar manner than previous reorg scripts did. rtems-rc-19990202-0.diff > contains the diffs after reorg-score-cpu.sh has been run on a > rtems-19981215 snapshot + my patches up to rtems-rc-19990131-2.diff. > > This patch is rather nasty and may break something. However, I've tested > it for about 10 different target/bsp pairs and believe to have shaken > out most bugs. I wonder about the following .h files that were not moved: a29k/asm.h a29k/cpu_asm.h i386/asm.h i960/asm.h m68k/asm.h m68k/m68302.h m68k/m68360.h m68k/qsm.h m68k/sim.h mips64orion/asm.h mips64orion/cpu_asm.h mips64orion/mips64orion.h no_cpu/asm.h no_cpu/cpu_asm.h powerpc/asm.h powerpc/mpc860.h sh/asm.h sparc/asm.h sparc/erc32.h
1999-02-18Patch from Emmanuel Raguet <raguet@crf.canon.fr>:Joel Sherrill1-1/+9
You will find enclosed a patch which contains, for Intel PC386 target : - an Ethernet driver for DEC21140 device based boards. - a simple cache management with paging mechanism.
1999-02-18GLobal reentrancy structure is now dynamically initialized.Joel Sherrill1-1/+2
1999-02-15Patch from Eric Valette <valette@crf.canon.fr> to undo the patchJoel Sherrill1-2/+0
that added ifdef on the pc386.
1999-02-10POSIX timer support.Joel Sherrill1-1/+1
1999-02-10Set the read/write offset to 0 when the file is opened. The ACVC had a testJoel Sherrill1-0/+1
that performed the sequence open/write/close/open/read/close on a file. It did not get the correct result since the file descriptor was reused.
1999-02-10Corrected multiple places the file size was not being properly updated.Joel Sherrill1-2/+8
1999-02-10Added getcwd().Joel Sherrill1-0/+280
1999-02-10POSIX timer support modifications.Joel Sherrill3-4/+16
1999-02-10Comments fixed after problem report from Ian Lance Taylor <ian@airs.com>.Joel Sherrill1-19/+10
1999-02-05Patch from Eric Norum to correct bug induced by select() patch.Joel Sherrill2-5/+11
1999-02-05Corrected spacing and added some new error checks that were neededJoel Sherrill3-24/+34
to avoid dereferencing NULLs.
1999-02-04Added printf()'s that can be uncommented to trace MBUF operations. ThisJoel Sherrill1-0/+3
is very useful when debugging a device driver.
1999-02-04Modifed to reflect transition from device driver to file system.Joel Sherrill1-41/+4
1999-02-04Added debug printf()'s that are commented out. Uncommenting theseJoel Sherrill1-0/+3
allows one to trace the enqueueing and dequeueing of messages. This can be used to insure that packets are getting to the boundary between the network stack and the device driver.
1999-02-04Added PowerPC specific header checksum code.Joel Sherrill2-68/+10
1999-02-04Added PowerPC specific header checksum code.Joel Sherrill1-4/+61
Added volatile to i386 assembly statements in header checksum code.
1999-02-04Debugged and now works except for handling of minor number.Joel Sherrill1-313/+429
1999-02-04Modified to include comments on how to get TCPDEBUG turned on andJoel Sherrill2-1/+11
printing messages.
1999-02-03POSIX Timers submitted by Juan Zamorano FloresJoel Sherrill5-8/+1011
<jzamora@avellano.datsi.fi.upm.es>.
1999-02-02Added debug #define and commented it out.Joel Sherrill1-0/+1