Commit Graph
24290 Commits
Author SHA1 Message Date
Ralf Corsepius e9d50abb3a Use size_t for sizes. 2009-10-13 15:40:21 +00:00
Ralf Corsepius 463b8dfe15 Add __attribute__((unused)) to suppress warnings. 2009-10-13 15:40:03 +00:00
Ralf Corsepius b36a7d8953 Use size_t for swapout_workers. 2009-10-13 15:39:43 +00:00
Ralf Corsepius 253c3a1d21 2009-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/bdbuf.c: Fix broken printf formats.
	Use size_t for sizes.
2009-10-13 15:29:45 +00:00
Thomas Doerfler 7cafde2296 Enable interrupts during open to avoid NULL pointer access in interrupt handler. 2009-10-13 11:34:49 +00:00
Thomas Doerfler 94d7bd743c Update for block device API change. 2009-10-13 08:00:11 +00:00
Thomas Doerfler b96e09cb42 * libblock/include/rtems/diskdevs.h: Added driver data pointer to IO
control function.  The IO control handler takes now the disk device as
        first parameter instead of the physical device number.
        * cpukit/libblock/include/rtems/blkdev.h, libblock/src/bdbuf.c,
        libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/nvdisk.c,
        libblock/src/flashdisk.c, libblock/src/ramdisk.c: Update for block
        device API change.
2009-10-13 07:58:33 +00:00
Joel Sherrill 2e92a5d690 2009-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* bootcard: Update for heap API changes.
2009-10-12 20:22:18 +00:00
Ralf Corsepius 68b0a2a8cf Reflect having introduced rtems_error_code_t. 2009-10-12 16:17:37 +00:00
Ralf Corsepius 8ed3d52ee7 Introduce rtems_error_code_t.
Minor portability code-massaging.
2009-10-12 16:17:19 +00:00
Joel Sherrill bff419ffc2 2009-10-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpuuse/init.c, cpuuse/system.h: Use minimum stack size.
2009-10-12 13:31:01 +00:00
Joel Sherrill 1fbf17b679 2009-10-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h: BSP has plenty of memory.
	* startup/cmain.c: Comment out prints.
2009-10-12 13:30:04 +00:00
Ralf Corsepius 7577a80a5a 2009-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/interr.h: Introduce Internal_errors_t.
	* score/src/interr.c, score/include/rtems/score/userext.h,
	score/src/userextthreadbegin.c: Reflect having introduced
	Internal_errors_t.
2009-10-12 12:17:18 +00:00
Ralf Corsepius 749d64a86d Reflect having introduced Internal_errors_t. 2009-10-12 12:16:23 +00:00
Ralf Corsepius 25e02d50ce Introduce Internal_errors_t. 2009-10-12 12:15:59 +00:00
Thomas Doerfler 4349a40fc5 increase size of ROM to 4 Meg 2009-10-12 09:36:52 +00:00
Joel Sherrill f1887691cd 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx05/init.c, psx05/psx05.scn: Add test for bad mutex type.
2009-10-12 00:07:16 +00:00
Joel Sherrill a3a9a2d0ef 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxcleanup/system.h: Fix typo.
	* Makefile.am, configure.ac: Add new test for exercising pushing
	and popping a clean up handler without actually executing it.
	* psxcleanup01/.cvsignore, psxcleanup01/Makefile.am,
	psxcleanup01/init.c, psxcleanup01/psxcleanup01.doc,
	psxcleanup01/psxcleanup01.scn: New files.
2009-10-12 00:00:04 +00:00
Joel Sherrill 8f6b7b5122 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/alarm.c: If 0 seconds do not insert timer.
	* rtems/src/regionextend.c: Eliminate warning.  Use default else.
2009-10-11 22:37:38 +00:00
Joel Sherrill a450697323 2009-10-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add new test to ensure that canceling an
	alarm works as defined.
	* psxalarm01/.cvsignore, psxalarm01/Makefile.am, psxalarm01/init.c,
	psxalarm01/psxalarm01.doc, psxalarm01/psxalarm01.scn: New files.
2009-10-11 22:32:03 +00:00
Joel Sherrill f46fddfced 2009-10-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* psxtimer01/psxtimer.c: Actually pass the pointer we initialized.
2009-10-11 18:38:11 +00:00
Joel Sherrill 157354e9aa 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtimer01/psxtimer.c: Make sure we have null and not-null as return
	parameter to timer_settime().
2009-10-11 14:44:00 +00:00
Joel Sherrill 6aa3ce3bfe 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/thread.inl, score/src/threaddispatch.c:
	Correct conditionals so _Thread_Enable_dispatch() is always inlined
	when intended.
2009-10-11 14:18:03 +00:00
Joel Sherrill 5b5dd1c873 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/bspgetworkarea.c: Add debug prints of memory information.
2009-10-10 21:24:15 +00:00
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