Commit Graph

1547 Commits

Author SHA1 Message Date
Joel Sherrill
371cea31d3 2009-08-24 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* libmisc/stackchk/check.c, rtems/src/regionreturnsegment.c,
	rtems/src/regiongetsegmentsize.c, src/heapalignupuptr.c,
	src/heapallocatealigned.c, src/heapallocate.c, src/heap.c,
	src/heapextend.c, src/heapfree.c, src/heapgetfreeinfo.c,
	src/heapgetinfo.c, src/heapresizeblock.c, src/heapsizeofuserarea.c,
	src/heapwalk.c, src/pheapgetblocksize.c, inline/rtems/score/heap.inl,
	include/rtems/score/heap.h: Overall cleanup.  Changed all types for
	addresses, sizes, offsets and alignments to uintptr_t.  Reformatted.
	Added variables for clarity.  Renamed various objects.  Enabled
	_HAssert() for all instances.  More changes follow.
2009-08-26 12:00:24 +00:00
Thomas Doerfler
da422590ae Define M68K_FP_STATE_SIZE also if used in assembler files. 2009-08-24 10:29:10 +00:00
Joel Sherrill
93f7ea15e5 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h, score/Makefile.am,
	score/include/rtems/score/thread.h: Only instantiate
	_Thread_Idle_body() if it is going ot be used.
	* score/src/threadidlebody.c: Removed.
2009-08-19 16:40:03 +00:00
Joel Sherrill
db0df7b6df 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the
	compiler will not generate code thinking it returns.
2009-08-19 16:39:05 +00:00
Joel Sherrill
3a95c67925 2009-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/heapallocatealigned.c: Remove unused label.
2009-08-18 18:40:14 +00:00
Joel Sherrill
09794266c4 2009-08-18 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* score/src/heapallocatealigned.c: Change break to continue to fix
	issue encountered on ARM. Fix indentation.
2009-08-18 16:15:16 +00:00
Joel Sherrill
3390ba8832 2009-08-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/preinstall.am,
	posix/Makefile.am, posix/preinstall.am, rtems/Makefile.am,
	rtems/preinstall.am, score/Makefile.am, score/preinstall.am: Revert
	modifications accidentally committed.
2009-08-12 14:20:20 +00:00
Joel Sherrill
877de9773c 2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/debug.h: Fix typo.
2009-08-11 19:00:45 +00:00
Joel Sherrill
cdfe85a7f3 2009-08-11 Josh Switnicki <josh.switnicki@utoronto.ca>
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Fix bug in
	_CPU_Context_Initialize.
2009-08-11 17:03:01 +00:00
Joel Sherrill
d81bfed2af 2009-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/heapresizeblock.c: Remove printk's that were accidentally
	committed.
2009-08-09 17:42:20 +00:00
Joel Sherrill
235aaf0c10 2009-08-09 Xi Yang <hiyangxi@gmail.com>
* libcsupport/Makefile.am, posix/Makefile.am, rtems/Makefile.am,
	sapi/Makefile.am, score/Makefile.am,
	score/include/rtems/score/heap.h: HEAP_BLOCK_USED_OVERHEAD was under
	by one uint32_t. This showed up in the unlimited and heapwalk tests
	on ARM targets.
2009-08-09 15:23:10 +00:00
Joel Sherrill
f32c036de0 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectextendinformation.c: Minor rework to eliminate
	uncovered ranges introduced by Chris' patch.
2009-08-07 00:19:04 +00:00
Joel Sherrill
ac893a9731 2009-08-06 Chris Johns <chrisj@rtems.org>
* score/src/objectextendinformation.c: Ensure that nothing is moved or
	copied until all memory is successfully allocated.
2009-08-06 20:43:30 +00:00
Joel Sherrill
f0bf33260a Revert. 2009-08-06 20:43:19 +00:00
Joel Sherrill
684e243dd0 Revert. 2009-08-06 20:39:27 +00:00
Joel Sherrill
04a62dce21 2009-08-05 Josh Switnicki <josh.switnicki@utoronto.ca>
* Makefile.am: added AVR specific Header files to score/cpu/avr/avr.
	These are from avr-libc 1.6 and assumed to exist by AVR applications.
	* preinstall.am: Regenerated.
2009-08-06 14:52:07 +00:00
Joel Sherrill
88157a76de 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, rtems/Makefile.am, rtems/preinstall.am,
	sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am,
	score/preinstall.am, score/include/rtems/score/heap.h,
	score/inline/rtems/score/heap.inl: Remove inline version now that it
	is in a C file.
	* libcsupport/src/end_profile.c: New file.
2009-08-05 21:18:29 +00:00
Joel Sherrill
e6faab6503 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/Makefile.am: Move from inline to body to avoid path explosion
	from inlining this. Makes coverage analysis easier.
	* score/src/heapalignupuptr.c: New file.
2009-08-05 21:16:49 +00:00
Joel Sherrill
74f4edaf44 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/heapallocatealigned.c: Fix spacing.
2009-08-05 15:35:55 +00:00
Joel Sherrill
a2fa532d7b 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/wkspace.c: Improve debug output.
2009-08-05 15:35:02 +00:00
Joel Sherrill
76a670bd40 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems/rtems/region.h: Use new name.
	* score/include/rtems/debug.h: Fix spacing.
2009-08-05 15:27:01 +00:00
Chris Johns
0d15414ed6 009-08-05 Chris Johns <chrisj@rtems.org>
* libmisc/dummy/dummy-networking.c: New.
        * libmisc/dummy/dummy.c, libmisc/Makefile.am: Move
        trhe networking configuration into a separate file so
        configuration varations do not cause conflicts.
        * score/inline/rtems/score/object.inl,
        score/include/rtems/score/object.h: Remove warnings.
        * score/inline/rtems/score/object.inl: Add _Chain_First,
        _Chain_Last, _Chain_Mext, and _Chain_Previous.
        * sapi/inline/rtems/chain.inl: Add rtems_chain_first,
        rtems_chain_last, rtems_chain_mext, and rtems_chain_previous.
        * libblock/include/rtems/diskdevs.h: Remove the bdbuf pool id and
        block_size_log2. Add media_block_size.
        * libblock/src/diskdevs.c: Remove size restrictions on block
        size. Add media block size initialisation. Remove comment to clean
        up the bdbuf cache.
        * libblock/src/blkdev.c: Remove references to
        block_size_log2. Allow any block size.
        * libblock/include/rtems/bdbuf.h, libblock/src/bdbuf.c: Remove all
        references to pools and make the cache handle demand driver
        variable buffer size allocation. Added worker threads support the
        swapout task.
        * sapi/include/confdefs.h: Updated the bdbuf configutation.
2009-08-05 00:00:54 +00:00
Joel Sherrill
8960aa5417 2009-08-03 Roger Dahlkvist <ruppe@kth.se>
* score/cpu/Makefile.am: nios2 was not in the list.
2009-08-03 14:22:10 +00:00
Joel Sherrill
fb29a8de4a 2009-08-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/inline/rtems/score/heap.inl, score/src/heapresizeblock.c:
	Simplify routine.
2009-08-01 18:18:26 +00:00
Joel Sherrill
709ac26394 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/heap.inl: Revert accidental commit.
2009-08-01 16:00:36 +00:00
Joel Sherrill
894bbbc4f2 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/heap.inl, score/src/heapwalk.c: Do not
	inline code to check if newline should be printed. It leads to branch
	path explosion which is really hard to get coverage on.
2009-08-01 15:58:59 +00:00
Joel Sherrill
a764317842 2009-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/heapgetinfo.c: Simplify implementation.
2009-07-31 16:07:51 +00:00
Joel Sherrill
cedfd802ef 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadinitialize.c: Rework so there is only one error exit
	path. This required setting every variable that contains memory
	allocated from the workspace to NULL early and using that assumption
	in the one failed exit path.
2009-07-30 00:14:26 +00:00
Joel Sherrill
e63b79d590 2009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/wkspace.c: Add debug printks.
2009-07-30 00:11:44 +00:00
Joel Sherrill
b32020b470 2009-07-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Context switch now works well
	enough to run ticker to completion with the simulator clock idle
	task. But if you comment out the printk's in _CPU_Context_Initialize,
	it hangs. This remains to be investigated.
2009-07-28 23:14:23 +00:00
Joel Sherrill
0df035b6e5 2009-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/preinstall.am: SuperCore Spinlock is only
	used by POSIX API. Do not build it when POSIX is not enabled.
2009-07-27 00:00:53 +00:00
Joel Sherrill
3da35a18e5 2009-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.S: Unsuccessful attempt to fix.
2009-07-23 17:40:06 +00:00
Joel Sherrill
a74c869600 2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/iterateoverthreads.c: Restructure a bit to make analysis
	easier.
2009-07-23 15:46:48 +00:00
Joel Sherrill
cdea617055 2009-07-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/inline/rtems/score/states.inl: Add
	_States_Is_interruptible_by_signal. Add more DOxygen comments and
	clean up.
2009-07-22 21:26:30 +00:00
Joel Sherrill
90e6d39f8e 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/src/debug.c, score/include/rtems/debug.h: Rename
	_Debug_Is_enabled to rtems_is_debug_enabled.
2009-07-21 19:27:44 +00:00
Joel Sherrill
b2b77956dc 2009-07-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/corebarrierwait.c: Reverse order of tests to increase test
	coverage.
2009-07-20 14:51:21 +00:00
Joel Sherrill
b4404843ec 2009-07-17 Josh Switnicki <josh.switnicki@utoronto.ca>
*cpu_asm.S: implemented _CPU_Context_Restore by adding tags to
	restore section of context switch.
	Fixed bug in _CPU_Context_Switch. The wrong registers were being
	used for pointer to running task Context_Control struct.
2009-07-17 18:33:35 +00:00
Thomas Doerfler
9364cf663f adding lpc24xx BSP parts 2009-07-17 15:16:50 +00:00
Joel Sherrill
5f930f07fb 2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/watchdogadjusttochain.c: Correct bug in recent rework.
	Coverage not impacted.
2009-07-17 14:21:28 +00:00
Thomas Doerfler
ebe76f940b removing unneeded files 2009-07-17 13:59:43 +00:00
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