Commit Graph
18963 Commits
Author SHA1 Message Date
Joel Sherrill 171bbec508 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/threadsup.h, posix/src/cancel.c,
	posix/src/canceleval.c: Make psxcancel run again.
	_POSIX_Thread_Exit() can be called on running thread or another
	thread when it is cancelled.
2009-10-10 16:03:38 +00:00
Joel Sherrill 6805ac3718 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
	posix/src/mutextimedlock.c, posix/src/prwlocktimedrdlock.c,
	posix/src/prwlocktimedwrlock.c, posix/src/semtimedwait.c: Switch from
	switch to if's because only one value needed to be tested. This
	shrinks the code and makes it easier to do coverage analysis on.
2009-10-10 15:21:41 +00:00
Joel Sherrill 681d452637 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/object.inl: _Objects_Get_local_object() is
	only called from places where the index is known to be valid.
	_Objects_Set_local_object() already assumed this. Eliminates
	unreachable code.
2009-10-10 15:19:15 +00:00
Joel Sherrill 2f95352cc6 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/timerserver.c: Indentation.
2009-10-10 15:16:47 +00:00
Joel Sherrill 58a8a4717d 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/regiondelete.c, rtems/src/regionextend.c,
	rtems/src/regiongetfreeinfo.c, rtems/src/regiongetinfo.c,
	rtems/src/regiongetsegment.c, rtems/src/regionresizesegment.c,
	rtems/src/regionreturnsegment.c: Avoid initializing status code. This
	generates dead code on some targets. Add default case to eliminate
	unitialized variable warning.
2009-10-10 15:15:12 +00:00
Joel Sherrill 1c78f6a975 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtimer01/psxtimer.c: Modify so it passes in a NULL to
	timer_settime() for previous value. We are not using the
	value in this particular case and this path must be exercised.
	* psxtimer01/psxtimer01.scn: Update so it matches output on sis.
2009-10-10 15:09:36 +00:00
Joel Sherrill c257fb9ed5 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise when the ticks
	since boot wraps around 0 and the timer server must deal with that
	condition.
	* sp67/.cvsignore, sp67/Makefile.am, sp67/init.c, sp67/sp67.doc,
	sp67/sp67.scn: New files.
2009-10-10 15:03:30 +00:00
Till Straumann 7cb7a5ef09 2009-10-09 Till Straumann <strauman@slac.stanford.edu>
* shared/vmeUniverse/vmeUniverse.c: print message and
	let vmeUniverseIntLoopbackTst() fail if odd-numbered
	vector is used (cannot program the chip to reply with
	such a vector).
2009-10-09 19:50:33 +00:00
Joel Sherrill 031b57caa3 2009-10-09 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* cpukit/sapi/include/rtems/io.h: Documentation.
	* cpukit/sapi/src/ioregisterdriver.c: Call from interrupt context is
	an error.
	* cpukit/sapi/src/iounregisterdriver.c: Disable preemption during
	critical section.
2009-10-09 13:46:39 +00:00
Joel Sherrill bbf6253a77 2009-10-09 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sp40/init.c, sp40/sp40.doc, sp40/sp40.scn: New test cases.

	* spintrcritical09/init.c, spintrcritical10/init.c,
	spintrcritical11/init.c: Fixed potentially infinite loops.
2009-10-09 13:43:36 +00:00
Thomas Doerfler 4ee2c53f01 Makefile.am: Added interrupt server. 2009-10-09 13:00:08 +00:00
Ralf Corsepius 0c9bb8ad66 Regenerate. 2009-10-09 04:20:09 +00:00
Ralf Corsepius b85a6f5501 Preps for gcc-4.4.2. 2009-10-09 04:17:52 +00:00
Ralf Corsepius 365dd6265f Regenerate. 2009-10-09 04:13:49 +00:00
Ralf Corsepius 627e28add0 Bump GDB_RPMREL. 2009-10-09 04:13:31 +00:00
Ralf Corsepius 7ba21a9bc4 New. 2009-10-09 04:05:25 +00:00
Ralf Corsepius deebd0c05c Housekeeping. 2009-10-09 04:04:27 +00:00
Ralf Corsepius 301c09d303 Housekeeping. 2009-10-09 03:53:42 +00:00
Chris Johns 8e686a2448 2009-10-09 Chris Johns <chrisj@rtems.org>
* libmisc/shell/main_mknod.c: Fixed build problem with networking
        disabled.
2009-10-08 21:31:40 +00:00
Thomas Doerfler 578e6fe20d * mcf5282/include/mcf5282.h: add missing (x) params to four macros, added paranthesis around usage of x in some macros 2009-10-08 16:36:22 +00:00
Chris Johns 7357f5665b 2009-10-08 Chris Johns <chrisj@rtems.org>
* libchip/ide/ata.c, c/src/libchip/ide/ata_internal.h: Remove the
        multiblock support from the ATA driver. Multiblock at the disk
        level should not be a global policy as a disk may have more than
        one partition with different block sizes. An IDE driver could
        decide to use the feature with DMA but this a driver specific
        design choice. Fixed bugs relating to variable block sizes and
        large block transfer.
        * c/src/libchip/ide/ide_controller.c,
        c/src/libchip/ide/ide_ctrl_cfg.h, c/src/libchip/ide/ide_ctrl_io.h:
        Changed the block size to 32bits so blocks of 64K or bigger can be
        transfered in a single driver call.
2009-10-08 07:25:15 +00:00
Chris Johns c1fc5d4709 2009-10-08 Chris Johns <chrisj@rtems.org>
* ide/ide.c: Fixed more IDE driver bugs. The driver can transfer
        64K in a single write on my test PC and qemu with this driver. The
        driver only checks the data ready bit at the start of each 512
        block being transfered. This has speed the transfer loop up. Fixed
        the timing so the BSP timer is used until RTEMS has started.
2009-10-08 07:15:08 +00:00
Chris Johns eb649786c8 2009-10-08 Chris Johns <chrisj@rtems.org>
* Makefile.am, preinstall.am: Added statvfs.h.
        * libcsupport/Makefile.am: Add statvfs.c.
        * libcsupport/include/sys/statvfs.h, libcsupport/src/statvfs.c:
        New.
        * libcsupport/include/rtems/libio.h: Add a file system handler for
        the statvfs call.
        * libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c,
        libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c: Set the
        statvfs handler to NULL.
        * include/rtems/fs.h: Add a second node access field for the RFS
        file system to hold a directory offset while the existing field
        holds the inode number. This save a rescan of the directory when
        working with directories.
        * libblock/include/rtems/bdbuf.h: Added references and user fields
        to the buffer descriptor.
        * libblock/src/bdbuf.c: Added dynamic buffer support for different
        block sizes. Fixed a number of bugs.
        * libblock/src/blkdev.c: Release the disk device on an error.
        * libblock/src/diskdevs.c: Set the block size to the media block
        size during initialisation of the disk device.
        * libblock/src/flashdisk.c, libblock/src/nvdisk.c,
        libblock/src/ramdisk.c: Updated the drivers to handle variable
        block sizes.
        * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Release any
        buffers when an error occurs. The FAT buffer layer hangs onto a
        single buffer while mounted. This should be fixed.
        * sapi/inline/rtems/chain.inl: Added rtems_chain_set_off_chain,
        rtems_chain_is_node_off_chain, and rtems_chain_previous.
        * score/inline/rtems/score/chain.inl: Added _Chain_Set_off_chain,
        and _Chain_Is_node_off_chain.
        * libmisc/shell/main_ln.c, libmisc/shell/main_mknod.c,
        libmisc/shell/mknod-pack_dev.c, libmisc/shell/mknod-pack_dev.h:
        New shell commands.
        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added ln and
        mknod commands.
        * libmisc/shell/hexdump-display.c: Fixed the reopen bug which
        showed up as a free with a bad pointer.
        * libmisc/shell/main_mount.c: List the user adding file system
        when listing the available file systems to mount.
        * libmisc/shell/utils-cp.c: Remove the fixed static copy buffer
        and use a large dynamic buffer.
        * score/inline/rtems/score/address.inl, score/src/coremsgsubmit.c,
        score/src/objectallocate.c, score/src/objectfree.c: Remove
        warnings.
2009-10-08 07:07:36 +00:00
Ralf Corsepius cdf0be65ed Regenerate 2009-10-07 09:02:12 +00:00
Ralf Corsepius baf0a66ed4 BINUTILS_VERS = 2.19.92. 2009-10-07 09:01:04 +00:00
Ralf Corsepius 7ad77d2951 New. 2009-10-07 06:54:10 +00:00
Ralf Corsepius 2cd6377acc Regenerate. 2009-10-07 06:52:08 +00:00
Ralf Corsepius fb406b57ea Switch back to gnu.org hosted sources. 2009-10-07 06:51:32 +00:00
Ralf Corsepius b26f0a19bc GDB_VERS = 7.0 2009-10-07 06:50:12 +00:00
Ralf Corsepius 2b22160ffe Hack around gdb >= 7.0 trying to globally install syscall/*linux.xml. 2009-10-07 06:49:32 +00:00
Joel Sherrill 7b1df57761 2009-10-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/src/ioregisterdriver.c: Reowork so this is a context switch
	disable critical section not interrupt disable critical section.
	Hopefully eliminated dead code which showed up in coverage runs.
2009-10-06 22:42:48 +00:00
Thomas Doerfler 133bffb9be various changes 2009-10-06 19:56:07 +00:00
Joel Sherrill 63e99db572 2009-10-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sptests/spintrcritical09/init.c, sptests/spintrcritical10/init.c,
	sptests/spintrcritical11/init.c: Fixed potentially infinite loops.
	* sp20/system.h: Increased micro seconds per tick in order to be more
	independent of the console output speed.
2009-10-05 15:01:59 +00:00
Joel Sherrill 456a77680c 2009-10-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sapi/include/rtems/io.h, sapi/src/ioregisterdriver.c: Documenation.
	rtems_io_lookup_name() is now deprecated.  Added
	rtems_io_driver_io_error().  rtems_io_register_driver() is now
	thread-safe.
2009-10-05 15:00:53 +00:00
Joel Sherrill 37f9717a4b 2009-10-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/ide/ata.c: Revert previous change. Not all ARM BSPs use a
	shared irq.h yet and this breaks a significant number of them.
2009-10-05 14:39:26 +00:00
Thomas Doerfler b3e228e681 add missing files 2009-10-05 11:05:05 +00:00
Thomas Doerfler 2c4d98748c renamed lpc24xx BSPs, reorganized linkcmds 2009-10-05 10:33:31 +00:00
Thomas Doerfler aa5ddd3d77 renamed lpc24xx BSPs 2009-10-05 10:32:55 +00:00
Thomas Doerfler 24dc66c6ef renamed config files 2009-10-05 10:32:28 +00:00
Joel Sherrill bbb96ceb16 2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonreportstatistics.c: owner field is always set so
	safe to use.  Reformat.
	* rtems/src/regionresizesegment.c: Always evaluate the blocked queue
	if the resize succeeded.
	* rtems/src/tasksetnote.c: Spacing.
2009-10-04 22:15:00 +00:00
Joel Sherrill ff3c06a529 2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/psignal.h: Add extern for ualarm timer.
	* posix/src/alarm.c, posix/src/ualarm.c: Change from switch to if since
	many enumerated values have no action.
	* posix/src/psignal.c: Initialize ualarm and alarm timers.
2009-10-04 22:08:43 +00:00
Joel Sherrill d05ec0f773 2009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/init.c, sp07/sp07.scn, sp09/init.c, sp09/screen01.c,
	sp09/sp09.scn, sp28/init.c, sp62/init.c, sp62/sp62.scn, sp64/init.c,
	sp64/sp64.scn: Add more test cases highlighted on SPARC at -O2, x86
	at -Os and m68k at -Os. Fix typos.
2009-10-04 22:02:18 +00:00
Thomas Doerfler 64a3d8bb57 add missing file 2009-10-03 09:43:14 +00:00
Ralf Corsepius 3a3be12c1a 2009-10-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/openpic/openpic.c: Make openpic_writefield
	static inline (Get rid of GCC warning).
2009-10-03 04:47:45 +00:00
Ralf Corsepius e24a5a031f 2009-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* sp54/init.c: Use rtems_build_id to make building Objects_Id
	RTEMS_USE_16_BIT_OBJECT clean.
2009-10-02 16:50:30 +00:00
Ralf Corsepius 7093646b95 2009-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-driver.c: Fix warning if
	defined(RTEMS_USE_16_BIT_OBJECT).
2009-10-02 15:54:47 +00:00
Thomas Doerfler 1a32895534 * Makefile.am, irq/irq_config.h, irq/irq_init.c, irq/irq.h:
add basic IRQ support (for decrementer)

        * start/start.S, startup/cmain.c, startup/linkcmds: add support
        for sdata* sections

        * startup/bsppanic.c: some cleanup
2009-10-02 13:39:12 +00:00
Ralf Corsepius aac23ec795 2009-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-prmisc.c: Fix warning if
	defined(RTEMS_USE_16_BIT_OBJECT).
2009-10-02 13:33:00 +00:00
Joel Sherrill 2697272499 2009-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* hello/init.c: Remove call to devFS_Show() which had accidentally
	gotten committed.
2009-10-02 11:50:39 +00:00
Joel Sherrill dda7c828a0 2009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, termios01/termios_testdriver.c: Do not use
	CONSOLE_USE_INTERRUPTS. That is in use by BSPs and we should not use
	it.
	* termios02/.cvsignore, termios02/Makefile.am, termios02/init.c,
	termios02/termios02.doc, termios02/termios02.scn: New files.
	termios02 is a test for tcdrain().
2009-10-01 23:52:36 +00:00