Commit Graph
5338 Commits
Author SHA1 Message Date
Thomas Doerfler 632e4306dc exception handler maintenance 2009-07-17 13:50:31 +00:00
Thomas Doerfler 4da69ca079 add common implementation to dispatch threads in isr 2009-07-17 12:43:12 +00:00
Thomas Doerfler 915bb51b90 make thread dispatching in ISRs generic code 2009-07-17 09:08:22 +00:00
Joel Sherrill 3a0827287d 2009-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, score/src/threadqenqueuepriority.c: Add
	RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY to give user ability to
	disable the loop in _Thread_queue_Enqueue_priority from being
	unrolled. This reduces code size and makes coverage analysis easier.
2009-07-10 20:32:48 +00:00
Joel Sherrill 36c2586f92 2009-07-09 Josh Switnicki <josh.switnicki@utoronto.ca>
* cpu_asm.S: Fixed bug in _CPU_Context_Switch. The wrong registers
	were being used for pointer to running task Context_Control
	struct.
2009-07-10 19:07:54 +00:00
Joel Sherrill 744379eee3 2009-07-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/watchdogadjusttochain.c: Rework to ease code coverage
	analysis.
2009-07-09 21:56:34 +00:00
Joel Sherrill b503e0b92e 2009-07-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/semcreate.c: Clean up rework to eliminate the goto and fix
	a bug introduced by rework.
2009-07-09 21:55:23 +00:00
Joel Sherrill af690b8573 2009-07-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/heap.c: Remove unneeded include.
2009-07-09 17:39:51 +00:00
Joel Sherrill c45a2ded00 2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/semcreate.c: Restructure to simplify and improve ability to
	anlize this routine for coverage.
2009-07-08 22:26:11 +00:00
Joel Sherrill 4b4108a4c5 2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectgetinfo.c: Clean up and eliminate unreachable code.
2009-07-08 17:56:07 +00:00
Joel Sherrill d6c8b56b62 2009-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/rtemsobjectapimaximumclass.c,
	score/include/rtems/score/object.h,
	score/src/objectapimaximumclass.c, score/src/objectgetinfo.c: Change
	return type of API maximum class methods to unsigned.
2009-07-07 23:33:17 +00:00
Joel Sherrill bc93f30f39 2009-07-07 Chris Johns <chrisj@rtems.org>
* score/src/objectshrinkinformation.c: Rework loop to simplify and
	remove dead code.
2009-07-07 22:47:03 +00:00
Joel Sherrill 33a538113c 2009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* ChangeLog, posix/src/mutexsetprioceiling.c: Remove warning.
2009-07-07 21:04:57 +00:00
Joel Sherrill 06f5ec9ce0 2009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/mutexsetprioceiling.c: Restructure to eliminate code
	paths which are unreachable. Also add more comments.
	* score/src/coremutexsurrender.c: Mark some code as RTEMS_DEBUG only
	since it cannot be hit unless coremutexseize.c is broken.
2009-07-07 17:29:47 +00:00
Joel Sherrill 8860ecf275 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/mutexget.c: Restructure to improve ability to do coverage
	analysis.
2009-07-06 22:02:34 +00:00
Joel Sherrill 3ba0750fd1 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/psxtransschedparam.c: Restructure to avoid untestable code
	being generated by switch.
2009-07-06 17:59:34 +00:00
Joel Sherrill 402dad517e 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/coremsgsubmit.c: Move impossible case inside an RTEMS_DEBUG
	conditional.
2009-07-06 16:44:49 +00:00
Joel Sherrill 7c46cf58b3 2009-07-03 Josh Switnicki <josh.switnicki@utoronto.ca>
* cpu.c: Implemented _CPU_Context_Initialize as a C function instead
	of a macro.  It works with limited functionality.  Implemented
	_CPU_Thread_Idle_body to use sleep instruction.
	* Makefile.am: Changed cpu_asm.c -> cpu_asm.S
	* cpu_asm.S: renamed from cpu_asm.c and implemented functions is asm
	* rtems/asm.h: Appended "macros.inc" to the end of "asm.h"
	* rtems/score/cpu.h:
	  + Included "avr/io.h".
	  + Added use 16 bit object definition.
	  + Modified Context_Control struct to relect the registers
	    that need to be saved.
	  + Implemented _CPU_ISR_Disable, _CPU_ISR_Enable, and _CPU_ISR_Flash.
	    Added function definitions for _CPU_Context_Initialize and
	    _CPU_Push.
2009-07-06 15:36:23 +00:00
Joel Sherrill 81551a2541 Update copyright. 2009-07-06 14:47:09 +00:00
Joel Sherrill 8cdf733f50 2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/src/mutex.c, posix/src/mutexinit.c: Add
	initial support for the pthread mutex type attribute added by UNIX98.
	It can be normal, recursive, errorcheck or default.
	* posix/src/mutexattrgettype.c, posix/src/mutexattrsettype.c: New files.
2009-07-06 14:46:36 +00:00
Joel Sherrill e660f86feb 2009-07-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/taskinitusers.c: Restructure to eliminate dead check --
	loop will not be executed when 0 tasks. Also improved comments and
	eliminated a local variable.
2009-07-04 19:45:18 +00:00
Joel Sherrill cf46f9de14 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/apiext.c: Unreachable API Extension paths marked as either
	unused or only with certain APIs.
2009-07-03 20:57:21 +00:00
Joel Sherrill 27b961a39b 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* itron/src/task.c, posix/src/pthread.c, rtems/src/tasks.c,
	sapi/src/exinit.c, score/include/rtems/score/apiext.h,
	score/src/apiext.c: No APIs currently implemented use the
	predriver_hook so disable it until such time as it is used.
2009-07-03 20:25:35 +00:00
Joel Sherrill ecdbb4259e 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/sigtimedwait.c: Restructure to improve coverage. Improve
	comments.
2009-07-03 18:40:31 +00:00
Joel Sherrill 562eab5c4e 2009-07-03 Daniel Hellstrom <daniel@gaisler.com>
* sapi/src/exinit.c, score/include/rtems/score/objectmp.h,
	score/src/objectmp.c: Ensure local node number is set early enough in
	MP configurations.
2009-07-03 15:13:47 +00:00
Joel Sherrill d81b56bd4f 2009-07-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/coremsg.h, score/src/coremsgflushwait.c:
	Mark _CORE_message_queue_Flush_waiting_threads with
	FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API since there is no way to
	reach it via an API.
2009-07-02 22:04:42 +00:00
Joel Sherrill bfa4bb20d1 2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/tod.h: Correct name of parameter.
2009-07-01 19:50:00 +00:00
Joel Sherrill d852e2342b 2009-06-30 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to
	make it easier to analyze for coverage.
2009-06-30 17:54:50 +00:00
Joel Sherrill 290d2b79fe 2009-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/killinfo.c, posix/src/mutexinit.c, posix/src/psignal.c,
	posix/src/psignalchecksignal.c, posix/src/pthread.c,
	posix/src/pthreadexit.c, posix/src/pthreadinitthreads.c: Remove
	includes of <assert.h> where possible. Make other uses conditional on
	ifdef RTEMS_DEBUG.
2009-06-29 23:19:28 +00:00
Joel Sherrill 2212a2adf9 2009-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/priority.h,
	posix/include/rtems/posix/pthread.h,
	posix/inline/rtems/posix/priority.inl, posix/src/killinfo.c,
	posix/src/pthread.c, posix/src/pthreadcreate.c,
	posix/src/pthreadsetschedparam.c: Various modifications to improve
	binary code coverage analysis. Some of these are to mark code as
	debug only. Some are to break conditional expressions into multiple
	lines. Some are to move inline methods that are not time critical
	into subroutines to make them easier to test. Inlining them multiple
	times means that their logic paths are spread across multiple
	methods. This explodes the test cases required.
	* posix/src/psxpriorityisvalid.c, posix/src/psxtransschedparam.c: New files.
2009-06-24 06:38:52 +00:00
Joel Sherrill c1d924daa7 2009-06-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/regionextend.c: Restructure to eliminate dead code being
	generated.
2009-06-18 16:17:03 +00:00
Chris Johns c0075af37a 2009-06-18 Chris Johns <chrisj@rtems.org>
* telnetd/des.c: Split the des_f struct into smaller parts so
        targets that cannot address large structs can be supported.
2009-06-17 22:29:52 +00:00
Joel Sherrill 202f93f347 2009-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectshrinkinformation.c: Fix spelling error.
2009-06-17 22:01:20 +00:00
Chris Johns 1205a7c9fe Changed the H8300 to lower case. 2009-06-17 22:01:18 +00:00
Chris Johns 6b2c314f20 2009-06-18 Chris Johns <chrisj@rtems.org>
* libmisc/shell/hexdump-odsyntax.c: H8300 has the same size float
        and double. Fix error in case statement.
2009-06-17 21:57:51 +00:00
Chris Johns bf7cc57b0a 2009-06-18 Chris Johns <chrisj@rtems.org>
* score/cpu/mips/rtems/mips/idtcpu.h: Missed another WAIT
        define. Removed.
2009-06-17 21:15:16 +00:00
Chris Johns b311cbc957 2009-06-17 Chris Johns <chrisj@rtems.org>
* libmisc/shell/extern-dd.h: Delcare the conv arrays extern to
        stop PPC link errors.
        * libmisc/shell/main_time.c, libmisc/Makefile.am,
        libmisc/shell/shellconfig.h: Add a time command.
2009-06-17 05:34:33 +00:00
Joel Sherrill ce57509cbd 2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk().
	* libcsupport/src/putk.c: New file.
2009-06-16 13:34:35 +00:00
Joel Sherrill dba73982fd 2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/killinfo.c: Make easier to map coverage data.
2009-06-15 16:33:11 +00:00
Chris Johns 6576c1d7ea 2009-06-15 Chris Johns <chrisj@rtems.org>
* libmisc/shell/hexdump-odsyntax.c: AVR has the same size float
        and double. Fix error in case statement.
        * libmisc/shell/main_dd.c: Remove sys/conf.h header. It is not
        available if networking is disabled.
2009-06-15 01:02:18 +00:00
Chris Johns 3967dbe4d3 Fixed nested includes. 2009-06-14 23:33:44 +00:00
Chris Johns 4896ab5dfc 2009-06-15 Chris Johns <chrisj@rtems.org>
* score/cpu/mips/rtems/mips/idtcpu.h: Remote WAIT define. Horrible
        overload.
2009-06-14 23:31:05 +00:00
Joel Sherrill 671e042e35 2009-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/heapwalk.c: Remove include of stdlib.h since abort was not
	called anymore.
2009-06-13 22:49:28 +00:00
Joel Sherrill 2a4e8e0457 2009-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/region.h,
	rtems/src/rtemsobjectgetclassinfo.c, score/src/heapwalk.c,
	score/src/objectgetnameasstring.c, score/src/objectsetname.c,
	score/src/timespecdivide.c, score/src/ts64divide.c: Remove include of
	stdio.h
2009-06-13 22:39:39 +00:00
Joel Sherrill 918a0d8fdd 2009-06-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c,
	libblock/src/ramdisk.c, libfs/src/dosfs/fat.c,
	libfs/src/dosfs/msdos_format.c: Eliminate using the GNU/Linux
	specific error numbers EBADRQC and ENOTBLK. Switch to EINVAL and
	ENOTTY as appropriate.
2009-06-12 17:38:53 +00:00
Chris Johns e4a3d93ab1 2009-06-12 Chris Johns <chrisj@rtems.org>
* libmisc/shell/dd-args.c, libmisc/shell/dd-conv.c,
        libmisc/shell/dd-conv_tab.c, libmisc/shell/dd-misc.c,
        libmisc/shell/dd-position.c, libmisc/shell/dd.h,
        libmisc/shell/extern-dd.h, libmisc/shell/hexdump-conv.c,
        libmisc/shell/hexdump-display.c, libmisc/shell/hexdump-odsyntax.c,
        libmisc/shell/hexdump-parse.c, libmisc/shell/hexdump.h,
        libmisc/shell/hexsyntax.c, libmisc/shell/main_dd.c,
        libmisc/shell/main_hexdump.c: New.
        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add dd and
        hexdump commands.
2009-06-12 05:51:43 +00:00
Chris Johns 7275542171 2009-06-12 Chris Johns <chrisj@rtems.org>
* libblock/include/rtems/flashdisk.h,
        libblock/include/rtems/nvdisk.h, libblock/src/flashdisk.c,
        libblock/src/nvdisk.c: Change names to match the RAM disk change.
        * libcsupport/src/eval.c: Remove some warnings.
2009-06-12 02:59:18 +00:00
Chris Johns 7baa484300 2009-06-12 Chris Johns <chrisj@rtems.org>
* libblock/src/bdbuf.c: Update comments.
        * libblock/src/bdpart.c, libblock/src/ide_part_table.c: Get the
        device from the rdev field of the stat buf.
        * libcsupport/include/rtems/libio.h: Add a path length to evalpath
        handler. Add parent locations to rmmod and unlink handlers.
        * libcsupport/include/rtems/libio_.h: Add a path length to
        rtems_filesystem_evaluate_path. Add
        rtems_filesystem_evaluate_relative_path, rtems_filesystem_dirname,
        and rtems_filesystem_prefix_separators. Remove
        rtems_filesystem_evaluate_parent.
        * libcsupport/src/base_fs.c, libcsupport/src/chdir.c,
        libcsupport/src/chmod.c, libcsupport/src/chown.c,
        libcsupport/src/chroot.c, libcsupport/src/fchdir.c,
        libcsupport/src/link.c, libcsupport/src/mount.c,
        libcsupport/src/open.c, libcsupport/src/privateenv.c,
        libcsupport/src/readlink.c, libcsupport/src/unmount.c,
        libcsupport/src/utime.c, libcsupport/src/unmount.c,
        libcsupport/src/utime.c, libfs/src/devfs/devfs.h,
        libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devstat.c,
        libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_misc.c,
        libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c,
        libfs/src/imfs/imfs_load_tar.c, libfs/src/imfs/ioman.c,
        libfs/src/pipe/pipe.c, libmisc/fsmount/fsmount.c,
        libnetworking/lib/ftpfs.c: Add the length parameter to the eval
        call.
        * libcsupport/src/eval.c: Add rtems_filesystem_prefix_separators,
        rtems_filesystem_dirname,
        rtems_filesystem_evaluate_relative_path. Add the length parameter
        to the eval call.
        * libcsupport/src/rmdir.c: Find the parent pathloc then the node
        pathloc from that node. Remove the call to find the parent given
        the node pathloc.
        * libcsupport/src/stat.c: Add the length parameter to the eval
        call. Set the device into the rdev field.
        * libcsupport/src/unlink.c: Find the parent pathloc then the node
        pathloc from that node. Remove the call to find the parent given
        the node pathloc.
        * libfs/src/dosfs/fat.c, libfs/src/dosfs/msdos_format.c: Get the
        disk device number from the stat rdev field.
        * libfs/src/dosfs/msdos.h: Add the length parameter to the eval
        call. Add the parent pathloc to the rmnod handler.
        * libfs/src/dosfs/msdos_dir.c: Add the parent pathloc to the rmnod
        handler.
        * libfs/src/dosfs/msdos_eval.c: Add the length parameter to the
        eval and token call.
        * libfs/src/imfs/imfs_directory.c: Add the parent pathloc to the
        rmnod handler.
        * libfs/src/imfs/imfs_fchmod.c: Do not test the mode flags for
        only the allowed flags. Add the missing flags spec'ed in the POSIX
        standard.
        * libfs/src/imfs/imfs_fsunmount.c, libfs/src/imfs/imfs_rmnod.c,
        libfs/src/imfs/imfs_unlink.c, libfs/src/imfs/memfile.c: Add the
        parent node. Currently ignored in the IMFS.
        * libfs/src/imfs/imfs_stat.c: Return the device number in the rdev
        field.
        * libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_symlink.c : Add
        the length parameter to the token call.
        * libfs/src/nfsclient/src/nfs.c: Add the length parameter to the
        eval call and parent node to the rmnod and unlink command.
        * libmisc/shell/internal.h: Remove the libc mounter decl to make
        public.
        * libmisc/shell/main_mount.c: Add support for hooking external
        mount support for new file systems.
        * libmisc/shell/shell.h: Add helper functions for the mount
        command.
2009-06-12 01:53:33 +00:00
Joel Sherrill 34e648791e 2009-06-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/corespinlockwait.c: Mark timeout code which is not
	currently exercised by any API with the
	FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API conditional.
2009-06-11 15:18:08 +00:00
Joel Sherrill d15bae699d 2009-06-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Fix minor error when application has its own
	initialization task table.
2009-06-10 17:10:59 +00:00