Commit Graph
1507 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 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 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 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 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 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 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 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 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 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 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 e050d9ae5a 2009-06-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/heapwalk.c: Verify addresses are aligned.
2009-06-08 22:50:27 +00:00
Joel Sherrill 931dd976bc 2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
	score/src/threadreset.c, score/src/threadresume.c,
	score/src/threadsuspend.c: Nesting count on thread suspension is only
	supported from ITRON API so disable if ITRON is disabled.
2009-06-01 21:44:01 +00:00
Joel Sherrill 46a67b1981 2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/thread.h, score/src/threadhandler.c: Merge
	conditional code from main and init/fini C++ constructors so the body
	of this method reads better. Mark thread prototypes which are not
	currently exercised by any APIs with
	FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API conditional.
2009-06-01 14:50:31 +00:00
Joel Sherrill 7c8d65e835 2009-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1415/cpukit
	* rtems/src/semcreate.c, rtems/src/semtranslatereturncode.c,
	score/include/rtems/score/coremutex.h,
	score/inline/rtems/score/coremutex.inl, score/src/coremutex.c:
	Address two paths where a task with a priority above the ceiling
	could obtain a priority ceiling mutex.
2009-05-28 20:38:12 +00:00
Joel Sherrill 3fb3de14ff PR fixed. 2009-05-27 12:05:19 +00:00
Joel Sherrill c7935a4a2a 2009-05-25 Allan Hessenflow <allanh@kallisti.com>
PR 1418/cpukit
	* rtems/score/cpu.h: corrected _CPU_ISR_Flash implementation, added
	core synchronization after all cli/sti.
2009-05-27 12:01:59 +00:00
Joel Sherrill 22c264e085 2009-05-18 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1412/cpukit
	* score/src/coremutex.c: Add missing braces. Broken with strict mutex
	code added.
2009-05-18 14:47:20 +00:00
Thomas Doerfler 3b7e9bcfcd cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point context initialization, save and restore code. 2009-05-15 07:20:38 +00:00
Joel Sherrill 4423e62ac1 2009-05-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1411/cpukit
	* rtems/src/workspace.c, score/include/rtems/score/protectedheap.h,
	score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c: Improve
	workspace wrapper methods.
2009-05-13 16:48:08 +00:00
Chris Johns 199ccded5d 2009-05-08 Chris Johns <chrisj@rtems.org>
* cpukit/libblock/src/bdpart.c, libmisc/shell/main_msdosfmt.c,
        libmisc/shell/main_rm.c, libnetworking/libc/gethostnamadr.c,
        score/include/rtems/score/bitfield.h,
        score/inline/rtems/score/priority.inl: Remove warnings.
2009-05-08 04:55:53 +00:00
Joel Sherrill 61541f4a41 2009-05-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectgetnext.c: Add checks for NULL pointers.
2009-05-08 02:13:24 +00:00
Joel Sherrill e8de5c718d 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Lower number of priorities and do not inline as
	much.
2009-05-05 21:17:11 +00:00
Joel Sherrill f16a6fe73a 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/heap.h,
	score/inline/rtems/score/address.inl,
	score/inline/rtems/score/heap.inl,
	score/inline/rtems/score/object.inl,
	score/inline/rtems/score/priority.inl,
	score/inline/rtems/score/tod.inl: Remove warnings.
2009-05-05 19:37:28 +00:00
Joel Sherrill 4848b56083 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Remove warnings.
2009-05-05 19:37:10 +00:00
Joel Sherrill c27951f23d 2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/system.h: Added
	RTEMS_COMPILER_DEPRECATED_ATTRIBUTE define.
2009-05-05 14:29:55 +00:00
Joel Sherrill af2b90de3f 2009-05-05 Michael Walle <michael@walle.cc>
* cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.
2009-05-05 14:19:58 +00:00
Joel Sherrill 6eae3bdd5b 2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Lower minimum stack size to 512 and CPU alignment
	to 4.
2009-05-05 01:11:05 +00:00
Joel Sherrill aaa5c0d08c 2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.c: Add stub for setjmp/longjmp. Remove when in newlib.
2009-05-04 20:34:42 +00:00
Joel Sherrill 7c4c284c4a 2009-04-14 Michael Walle <michael@walle.cc>
* cpu.h: corrected the registers in Context_Control and
	in CPU_Interrupt_frame to correspond to the saved frame in cpu_asm.S
   	Also switched on CPU_ISR_PASSES_FRAME_POINTER.
 	* cpu_asm.S: Moved the restore part of _CPU_Context_switch for
	easier reading.  Fixed _CPU_Context_restore, it now moves the
	argument and branches to a label in _CPU_Context_switch.  Removed
	unnecessary saves of registers in context switch and irq handling.
	Rewrote irq code to call the C helper.  Added some documentation
	* irq.c: New file derived from c4x and nios2.
2009-04-14 13:44:29 +00:00
Joel Sherrill 504fadbb1a 2009-04-06 Michael Walle <michael@walle.cc>
* cpu_asm.S: We cannot use any other register than r0 without saving
	them to the stack. (_ISR_Handler clears r0 right at the beginning)
2009-04-06 21:23:51 +00:00
Joel Sherrill 0067feb693 2009-03-12 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1385/cpukit
	* cpu_asm.S: When the type rtems_boolean was switched to the C99 bool,
	the size changed from 4 bytes to 1 byte. The interrupt dispatching
	code accesses two boolean variables for scheduling purposes and the
	assembly implementations of this code did not get updated.
2009-03-12 14:16:50 +00:00
Joel Sherrill 17175bbd3d 2009-03-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/heap.inl: Use the correct fields and do end
	- begin.
2009-03-06 20:08:20 +00:00
Joel Sherrill b7f49f7ed4 2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: Eliminate extern of unused variables.
2009-03-02 18:34:12 +00:00
Joel Sherrill 7246c8e997 2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_initialize.c, score/Makefile.am,
	score/include/rtems/score/protectedheap.h,
	score/inline/rtems/score/heap.inl: Get total heap size correct when
	using unified C Program Heap and RTEMS Workspace.
	* score/src/pheapgetsize.c: New file.
2009-03-02 18:10:34 +00:00
Joel Sherrill f547bc8a1f 2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove stray semi-colon.
2009-03-02 12:12:17 +00:00