Commit Graph

21633 Commits

Author SHA1 Message Date
Joel Sherrill
9f61efdaa7 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp69/Makefile.am, sp71/Makefile.am, spfifo02/Makefile.am: Tests do
	not need spin.c
2010-06-28 13:51:05 +00:00
Joel Sherrill
4b4cbdd68f 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* termios03/init.c, termios03/termios03.doc, termios03/termios03.scn,
	termios03/termios_testdriver_polled.c,
	termios03/termios_testdriver_polled.h: Add more test cases.
2010-06-28 13:42:25 +00:00
Joel Sherrill
4a3def384f 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp70/Makefile.am: Tests do not need spin.c
2010-06-28 13:24:25 +00:00
Joel Sherrill
1b9c0c5aee 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloc02/Makefile.am, malloc03/Makefile.am: Tests do not need spin.c
2010-06-28 13:23:27 +00:00
Joel Sherrill
d04a7e9316 2010-06-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* support/src/tmtests_support.c: Fix warning.
2010-06-25 16:59:06 +00:00
Joel Sherrill
69cab20e40 2010-06-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* termios03/.cvsignore, termios03/Makefile.am, termios03/init.c,
	termios03/termios03.doc, termios03/termios03.scn,
	termios03/termios_testdriver_polled.c,
	termios03/termios_testdriver_polled.h: New files.
	* Makefile.am, configure.ac: Add initial version of new test for polled
	IO support in termios.
2010-06-25 16:52:26 +00:00
Jennifer Averett
f9a4e80f86 2010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.com
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added default
	filesystem handlers.
	* libfs/src/defaults/default_chown.c,
	libfs/src/defaults/default_evalpath.c,
	libfs/src/defaults/default_fchmod.c,
	libfs/src/defaults/default_fcntl.c,
	libfs/src/defaults/default_fdatasync.c,
	libfs/src/defaults/default_freenode.c,
	libfs/src/defaults/default_fsmount.c,
	libfs/src/defaults/default_fstat.c,
	libfs/src/defaults/default_fsync.c,
	libfs/src/defaults/default_ftruncate.c,
	libfs/src/defaults/default_ioctl.c,
	libfs/src/defaults/default_link.c,
	libfs/src/defaults/default_lseek.c,
	libfs/src/defaults/default_mount.c,
	libfs/src/defaults/default_read.c,
	libfs/src/defaults/default_readlink.c,
	libfs/src/defaults/default_rename.c,
	libfs/src/defaults/default_rmnod.c,
	libfs/src/defaults/default_statvfs.c,
	libfs/src/defaults/default_symlink.c,
	libfs/src/defaults/default_unlink.c,
	libfs/src/defaults/default_utime.c,
	libfs/src/defaults/default_write.c: New files.
2010-06-25 14:23:48 +00:00
Joel Sherrill
569b3f4141 2010-06-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1589/cpukit
	* score/Makefile.am, score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an
	inline method. It is only used in one place and relatively simple.
	* score/src/threadevaluatemode.c: Removed.
2010-06-24 22:40:32 +00:00
Joel Sherrill
4d32a76de0 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/memfile.c: Fix assert.
2010-06-24 22:01:49 +00:00
Joel Sherrill
a9ea7088e3 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libcsupport/src/read.c, libcsupport/src/write.c: read(2) and write(2)
	should return 0 when passed a count of 0 after verifying other
	possible errors.
2010-06-24 21:48:52 +00:00
Joel Sherrill
efd6e8e5a0 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/imfs_creat.c: Fix warning.
2010-06-24 21:37:08 +00:00
Joel Sherrill
983bfad210 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c,
	libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_eval.c,
	libfs/src/imfs/imfs_fsunmount.c, libfs/src/imfs/imfs_getchild.c,
	libfs/src/imfs/imfs_initsupp.c, libfs/src/imfs/ioman.c,
	libfs/src/imfs/memfile.c: Evaluate all assert calls in IMFS. Either
	made them conditional on RTEMS_DEBUG or eliminated them.
2010-06-24 21:31:22 +00:00
Joel Sherrill
8bef4ccfb0 2010-06-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1590/cpukit
	* score/Makefile.am, score/include/rtems/score/thread.h,
	score/src/threadtickletimeslice.c: Remove _Thread_Reset_timeslice and
	replaces its single use with a call to the functionally equivalent
	_Thread_Yield_processor().
	* score/src/threadresettimeslice.c: Removed.
2010-06-24 21:27:30 +00:00
Joel Sherrill
2d1994c949 2010-06-24 Bharath Suri <bharath.s.jois@gmail.com>
PR 1542/filesystem
	PR 1585/filesystem
	* libfs/src/pipe/fifo.c: pipe_control_t was not deallocated if
	fifo_open() was attempted with (O_WRONLY|O_NONBLOCK).
	Mutex was locked too many times on this path and we needed an unlock.
2010-06-24 19:57:58 +00:00
Joel Sherrill
287febb503 2010-06-24 Bharath Suri <bharath.s.jois@gmail.com>
* Makefile.am, configure.ac: Removed some fifo tests.
	* spfifo01/Makefile.am, spfifo01/init.c: Minor changes to avoid
	excessive new lines in the output.

	spfifo02/Makefile.am, spfifo02/init.c, spfifo02/spfifo02.doc,
	spfifo02/spfifo02.scn, spfifo03/Makefile.am: Merge from spfifo08.
	Also added a few more cases, mostly from spfifo04/init.c.
	* spfifo03/init.c, spfifo03/spfifo03.doc, spfifo03/spfifo03.scn:
	Previously was spfifo06. Configure parameter for pipes is used now.
	* spfifo04/.cvsignore, spfifo04/Makefile.am, spfifo04/init.c,
	spfifo04/spfifo04.doc, spfifo04/spfifo04.scn, spfifo08/.cvsignore,
	spfifo08/Makefile.am, spfifo08/init.c, spfifo08/spfifo08.doc,
	spfifo08/spfifo08.scn: Removed.
2010-06-24 19:46:40 +00:00
Joel Sherrill
eb8c45dfdf 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1587/filesystem
	Coverity Id 35
	* libfs/src/rfs/rtems-rfs-shell.c: Address possible NULL dereference.
2010-06-24 13:28:39 +00:00
Sebastian Huber
d290bbb5b2 2010-06-24 Arnout Vandecappelle <arnout@mind.be>
PR 1586/misc
	* libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: Add retries to
	SD card accesses.
2010-06-24 07:54:15 +00:00
Joel Sherrill
da9b538965 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stackchk/check.c: More clean up and coverage improvements..
2010-06-23 23:28:46 +00:00
Joel Sherrill
ef08dc1f8a 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios02/Makefile.am: Revert.
2010-06-23 23:26:08 +00:00
Joel Sherrill
24a5a1452f 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* termios01/termios01.scn: Fix bug so existing test code for
	rtems_termios_baud_to_index() is executed.
2010-06-23 23:25:45 +00:00
Joel Sherrill
ab59de4542 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios01/init.c, termios02/Makefile.am: Fix bug so existing test
	code for rtems_termios_baud_to_index() is executed.
2010-06-23 23:24:11 +00:00
Joel Sherrill
ec76b1148e 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am, configure.ac: Revert accidentally committed patch.
2010-06-23 22:50:49 +00:00
Joel Sherrill
ce00f304d7 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psx01/Makefile.am, psx02/Makefile.am, psx03/Makefile.am,
	psx04/Makefile.am, psx05/Makefile.am, psx06/Makefile.am,
	psx07/Makefile.am, psx08/Makefile.am, psx09/Makefile.am,
	psx10/Makefile.am, psx11/Makefile.am, psx12/Makefile.am,
	psx13/Makefile.am, psx14/Makefile.am, psxalarm01/Makefile.am,
	psxautoinit01/Makefile.am, psxautoinit02/Makefile.am,
	psxbarrier01/Makefile.am, psxcancel/Makefile.am,
	psxcancel01/Makefile.am, psxchroot01/Makefile.am,
	psxcleanup/Makefile.am, psxcleanup01/Makefile.am,
	psxclock/Makefile.am, psxcond01/Makefile.am, psxenosys/Makefile.am,
	psxfatal01/Makefile.am, psxfatal02/Makefile.am,
	psxfile01/Makefile.am, psxintrcritical01/Makefile.am,
	psxitimer/Makefile.am, psxkey01/Makefile.am, psxkey02/Makefile.am,
	psxkey03/Makefile.am, psxmount/Makefile.am, psxmsgq01/Makefile.am,
	psxmsgq02/Makefile.am, psxmsgq03/Makefile.am, psxmsgq04/Makefile.am,
	psxmutexattr01/Makefile.am, psxobj01/Makefile.am,
	psxpasswd01/Makefile.am, psxrdwrv/Makefile.am,
	psxreaddir/Makefile.am, psxrwlock01/Makefile.am,
	psxsem01/Makefile.am, psxsignal01/Makefile.am,
	psxsignal02/Makefile.am, psxsignal03/Makefile.am,
	psxsignal04/Makefile.am, psxsignal05/Makefile.am,
	psxspin01/Makefile.am, psxspin02/Makefile.am, psxstack01/Makefile.am,
	psxstat/Makefile.am, psxsysconf/Makefile.am, psxtime/Makefile.am,
	psxtimer01/Makefile.am, psxtimer02/Makefile.am,
	psxualarm/Makefile.am, psxusleep/Makefile.am: Revert accidentally
	committed patch.
2010-06-23 22:49:59 +00:00
Joel Sherrill
e6e4eecec5 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am, configure.ac, psx01/Makefile.am, psx02/Makefile.am,
	psx03/Makefile.am, psx04/Makefile.am, psx05/Makefile.am,
	psx06/Makefile.am, psx07/Makefile.am, psx08/Makefile.am,
	psx09/Makefile.am, psx10/Makefile.am, psx11/Makefile.am,
	psx12/Makefile.am, psx13/Makefile.am, psx14/Makefile.am,
	psxalarm01/Makefile.am, psxautoinit01/Makefile.am,
	psxautoinit02/Makefile.am, psxbarrier01/Makefile.am,
	psxcancel/Makefile.am, psxcancel01/Makefile.am,
	psxchroot01/Makefile.am, psxcleanup/Makefile.am,
	psxcleanup01/Makefile.am, psxclock/Makefile.am,
	psxcond01/Makefile.am, psxenosys/Makefile.am, psxfatal01/Makefile.am,
	psxfatal02/Makefile.am, psxfile01/Makefile.am, psxfile02/init.c,
	psxfile02/psxfile02.doc, psxfile02/psxfile02.scn,
	psxintrcritical01/Makefile.am, psxitimer/Makefile.am,
	psxkey01/Makefile.am, psxkey02/Makefile.am, psxkey03/Makefile.am,
	psxmount/Makefile.am, psxmsgq01/Makefile.am, psxmsgq02/Makefile.am,
	psxmsgq03/Makefile.am, psxmsgq04/Makefile.am,
	psxmutexattr01/Makefile.am, psxobj01/Makefile.am,
	psxpasswd01/Makefile.am, psxrdwrv/Makefile.am,
	psxreaddir/Makefile.am, psxrwlock01/Makefile.am,
	psxsem01/Makefile.am, psxsignal01/Makefile.am,
	psxsignal02/Makefile.am, psxsignal03/Makefile.am,
	psxsignal04/Makefile.am, psxsignal05/Makefile.am,
	psxspin01/Makefile.am, psxspin02/Makefile.am, psxstack01/Makefile.am,
	psxstat/Makefile.am, psxsysconf/Makefile.am, psxtime/Makefile.am,
	psxtimer01/Makefile.am, psxtimer02/Makefile.am,
	psxualarm/Makefile.am, psxusleep/Makefile.am: Add test for fd greater
	than number of file descriptors configured.
2010-06-23 22:48:44 +00:00
Jennifer Averett
32e5d81420 2010-06-23 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* psxfile02/psxfile02.doc: Filled in documentation information.
2010-06-23 19:31:36 +00:00
Jennifer Averett
6cb72216e7 2010-06-23 Jennifer Averett <Jennifer Averett@OARcorp.com>
* Makefile.am, configure.ac: Added test case for calls that check for
	an unopened file descriptor.
	* psxfile02/.cvsignore, psxfile02/Makefile.am, psxfile02/init.c,
	psxfile02/psxfile02.doc, psxfile02/psxfile02.scn: New files.
2010-06-23 18:43:24 +00:00
Joel Sherrill
2d637b20f6 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/stackchk/check.c: Clean up to improve coverage.
2010-06-23 18:18:42 +00:00
Sebastian Huber
0ed275ec44 Typo. 2010-06-23 16:32:49 +00:00
Ralf Corsepius
8dbb864f82 2010-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: autoconf >= 2.65, automake >= 1.11.
2010-06-23 13:32:58 +00:00
Sebastian Huber
3103d4cbad 2010-06-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* make/custom/lpc32xx_mzx_boot_int.cfg,
	startup/linkcmds.lpc32xx_mzx_boot_int: Removed files.
	* include/boot.h, include/emc.h, include/i2c.h, include/nand-mlc.h,
	make/custom/lpc32xx_mzx.cfg, make/custom/lpc32xx_mzx_stage_1.cfg,
	make/custom/lpc32xx_mzx_stage_2.cfg, misc/boot.c, misc/emc.c,
	misc/i2c.c, misc/nand-mlc.c, misc/nand-mlc-read-blocks.c,
	misc/nand-mlc-write-blocks.c, misc/restart.c,
	startup/linkcmds.lpc32xx, startup/linkcmds.lpc32xx_mzx,
	startup/linkcmds.lpc32xx_mzx_stage_1,
	startup/linkcmds.lpc32xx_mzx_stage_2: New files.
	* configure.ac, Makefile.am, preinstall.am: Reflect changes above.
	* include/bsp.h, include/lpc32xx.h, irq/irq.c, rtc/rtc-config.c,
	startup/bspstart.c, startup/bspstarthooks.c,
	startup/linkcmds.lpc32xx_phycore: Changes throughout.
2010-06-23 08:27:57 +00:00
Sebastian Huber
b18fd861ba 2010-06-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* make/custom/lpc23xx_tli800.cfg, startup/linkcmds.lpc23xx_tli800: New
	files.
	* Makefile.am, configure.ac: Reflect changes above.
	* startup/linkcmds.lpc2362: Typos.
	* README: Documentation.
2010-06-23 08:11:28 +00:00
Sebastian Huber
b0cb645bce 2010-06-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/startup/linkcmds.base: Define bsp_vector_table_size
	unconditionally.  Use bsp_vector_table_in_start_section.
2010-06-23 08:04:00 +00:00
Chris Johns
68b49f1955 2010-06-23 Chris Johns <chrisj@rtems.org>
PR 1577/filesystem
        * libfs/src/pipe/fifo.c: Fixed the error codes returned on open.
2010-06-23 05:01:46 +00:00
Chris Johns
ac03a9b82f 2010-06-23 Chris Johns <chrisj@rtems.org>
* rtems/Makefile.am: Remove the stray 'c' file.
2010-06-23 03:10:34 +00:00
Jennifer Averett
e525f66b09 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved
	method to free a node from a define to an external method.
	* libcsupport/src/freenode.c: New file.
2010-06-22 20:03:41 +00:00
Joel Sherrill
ba6f945a7e 2010-06-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
* stackchk/blow.c, stackchk/stackchk.scn: Print a stack check report
	before blowing stack.
2010-06-22 19:59:35 +00:00
Jennifer Averett
71a30785f2 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* Makefile.am, configure.ac: Added test that attempts to free stack
	memory. This causes a error to be printed from the free function.
	* malloc03/.cvsignore, malloc03/Makefile.am, malloc03/init.c,
	malloc03/malloc03.doc, malloc03/malloc03.scn: New files.
2010-06-22 19:27:12 +00:00
Jennifer Averett
91e446f3ab 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* malloctest/init.c: Added error case with malloc of size 0.
2010-06-22 18:20:47 +00:00
Jennifer Averett
81110848dc 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* malloctest/init.c: Added test to check failure branch on calloc.
2010-06-22 18:09:04 +00:00
Jennifer Averett
34c062f065 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* psxtime/psxtime.scn, psxtime/test.c: Add a normal case with second
	parameter to adjtime NULL.
2010-06-22 17:44:02 +00:00
Joel Sherrill
db904606e3 2010-06-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am, configure.ac: Add new test to exercise path where using
	unlimited object support you are about to allocate more objects than
	can be represented in the Id. This test will NOT pass on targets with
	insufficient RAM.
	* sp71/.cvsignore, sp71/Makefile.am, sp71/init.c, sp71/sp71.doc,
	sp71/sp71.scn: New files.
2010-06-22 16:14:43 +00:00
Jennifer Averett
f5dc557118 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
	code and cleaned up error checking code.
2010-06-22 15:36:06 +00:00
Sebastian Huber
da361aa97d 2010-06-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c: Fixed string assignment in mount entry
	allocation.
2010-06-22 14:20:49 +00:00
Sebastian Huber
0378b47884 2010-06-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c: Fixed string assignment in mount entry
	allocation.
2010-06-22 13:31:13 +00:00
Sebastian Huber
0596902ec8 2010-06-22 Arnout Vandecappelle <arnout@mind.be>
PR 1580/misc
	* libchip/i2c/spi-sd-card.c: Use bigger chunks and yield processor
	while waiting for read data.
2010-06-22 11:36:14 +00:00
Sebastian Huber
5e649e5186 2010-06-22 Arnout Vandecappelle <arnout@mind.be>
PR 1579/misc
	* libchip/i2c/spi-sd-card.c: Gradually increasing sleep times when
	waiting for write to finish.
2010-06-22 08:41:08 +00:00
Sebastian Huber
58eccd0b7c 2010-06-22 Arnout Vandecappelle <arnout@mind.be>
PR 1567/misc
	* libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: Fixed
	timeouts.
2010-06-22 08:37:26 +00:00
Joel Sherrill
6dfaeb4b1f 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: spfatal20 not ready.
2010-06-22 02:19:39 +00:00
Joel Sherrill
420607fdba 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new tests to generate fatal errors in
	rtems_termios_open().
	* spfatal16/.cvsignore, spfatal16/Makefile.am, spfatal16/spfatal16.doc,
	spfatal16/spfatal16.scn, spfatal16/testcase.h, spfatal17/.cvsignore,
	spfatal17/Makefile.am, spfatal17/spfatal17.doc,
	spfatal17/spfatal17.scn, spfatal17/testcase.h, spfatal18/.cvsignore,
	spfatal18/Makefile.am, spfatal18/spfatal18.doc,
	spfatal18/spfatal18.scn, spfatal18/testcase.h, spfatal19/.cvsignore,
	spfatal19/Makefile.am, spfatal19/spfatal19.doc,
	spfatal19/spfatal19.scn, spfatal19/testcase.h: New files.
2010-06-22 02:15:46 +00:00
Chris Johns
ea8a958a95 2010-06-22 Chris Johns <chrisj@rtems.org>
* startup/m68k-stub.c: PR 1539. Fix buffer overrun.
2010-06-22 02:03:36 +00:00