Commit Graph

361 Commits

Author SHA1 Message Date
Joel Sherrill
6c8e2fe5aa 2010-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1606/cpukit
	* score/include/rtems/score/interr.h: Remove
	INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS since it is not generated.
2010-07-07 14:06:52 +00:00
Sebastian Huber
32d5196d70 2010-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/isrthreaddispatch.c: Removed file.
	* score/Makefile.am: Reflect change above.
	* score/include/rtems/score/isr.h: Removed _ISR_Thread_dispatch()
	declaration.
2010-07-06 07:56:15 +00:00
Joel Sherrill
f56f8e298a 2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/rtems_memalign.c, score/include/rtems/score/heap.h:
	Remove stray references to malloc boundary.
2010-07-01 15:39:59 +00:00
Joel Sherrill
263ab4bcb9 2010-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, score/include/rtems/score/percpu.h: Add
	__RTEMS_SIZEOF_VOID_P__ to cpuopts.h so percpu.h has this information
	available during build and after installation.
2010-06-29 18:51:49 +00:00
Joel Sherrill
11e8bc5f0f 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1573/cpukit
	* configure.ac, posix/src/killinfo.c,
	posix/src/psignalclearprocesssignals.c,
	posix/src/psignalsetprocesssignals.c,
	posix/src/psignalunblockthread.c, posix/src/pthreadcreate.c,
	posix/src/pthreadkill.c, posix/src/pthreadsigmask.c,
	rtems/src/signalsend.c, rtems/src/taskmode.c, score/Makefile.am,
	score/preinstall.am, score/include/rtems/system.h,
	score/include/rtems/score/context.h, score/include/rtems/score/isr.h,
	score/include/rtems/score/thread.h, score/src/isr.c,
	score/src/isrthreaddispatch.c, score/src/thread.c,
	score/src/threaddispatch.c, score/src/threadloadenv.c: Add a per cpu
	data structure which contains the information required by RTEMS for
	each CPU core. This encapsulates information such as thread
	executing, heir, idle and dispatch needed.
	* score/include/rtems/score/percpu.h, score/src/percpu.c: New files.
2010-06-29 00:34:12 +00:00
Joel Sherrill
569b3f4141 2010-06-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1589/cpukit
	* score/Makefile.am, score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an
	inline method. It is only used in one place and relatively simple.
	* score/src/threadevaluatemode.c: Removed.
2010-06-24 22:40:32 +00:00
Joel Sherrill
8bef4ccfb0 2010-06-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1590/cpukit
	* score/Makefile.am, score/include/rtems/score/thread.h,
	score/src/threadtickletimeslice.c: Remove _Thread_Reset_timeslice and
	replaces its single use with a call to the functionally equivalent
	_Thread_Yield_processor().
	* score/src/threadresettimeslice.c: Removed.
2010-06-24 21:27:30 +00:00
Ralf Corsepius
424e47e9b5 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/object.h: Remove OBJECTS_ITRON_API.
2010-06-18 04:21:19 +00:00
Ralf Corsepius
f0caa057fa 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/thread.h: Remove ITRON.
2010-06-18 04:20:06 +00:00
Ralf Corsepius
226d66d54c 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/interr.h: Remove ITRON.
2010-06-18 04:08:47 +00:00
Ralf Corsepius
4b24055fb1 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/system.h: Remove ITRON_EXTERN.
2010-06-18 04:00:54 +00:00
Ralf Corsepius
c51318ad23 2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* core/include/rtems/score/object.h: Remove Objects_ITRON_API.
2010-06-18 03:58:21 +00:00
Ralf Corsepius
1ada6163d8 Remove RTEMS_ITRON_API conditional blocks. 2010-06-18 02:56:26 +00:00
Joel Sherrill
b3d0e8bfcc 2010-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/object.h,
	score/include/rtems/score/thread.h: Remove prototypes for ITRON
	only methods removed by Ralf.
2010-06-17 17:20:55 +00:00
Ralf Corsepius
b02f920f6c 2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/mkrootfs.h,
	posix/include/rtems/posix/pthread.h,
	score/include/rtems/score/coresem.h,
	score/include/rtems/score/priority.h,
	score/include/rtems/score/threadq.h,
	score/include/rtems/score/timestamp.h: Move 'extern "C"'.
2010-06-14 06:08:50 +00:00
Ralf Corsepius
48e77eb9ac 2010-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/timestamp.h,
	score/include/rtems/score/timestamp64.h,
	score/include/rtems/score/watchdog.h:
	Misc. doxygen fixes.
2010-06-12 05:56:26 +00:00
Sebastian Huber
b2a0214d43 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/heap.h: Declare
	_Heap_Get_first_and_last_block().  Removed Heap_Extend_status.
	Changed return type of _Heap_Extend() to bool.
	* score/inline/rtems/score/heap.inl: Define
	_Heap_Set_last_block_size().
	* score/src/heap.c: Define and use _Heap_Get_first_and_last_block().
	* score/src/heapgetinfo.c: Removed assert statements.  Do not count
	the last block.  This ensures that all size values are an integral
	multiple of the page size which is consistent with the other
	statistics.
	* score/src/heapextend.c: Implemented support for scattered heap
	areas.
	* score/src/heapwalk.c: Dump also last block.  Changes for new first
	and last block values.
	* ./score/src/pheapextend.c, rtems/src/regionextend.c: Update for
	_Heap_Extend() changes.
2010-06-07 09:35:01 +00:00
Ralf Corsepius
eb55e007ab 2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/system.h: Let RTEMS_offsetof return uintptr_t
	instead of uint32_t (16bit target compatibility).
2010-04-12 15:28:03 +00:00
Thomas Doerfler
78623bce98 add/adapt documentation 2010-04-08 10:13:46 +00:00
Joel Sherrill
232cdcb3d6 2010-04-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/system.h: Fix warnings about TRUE/FALSE not
	defined on ARM target. This file need to be clean from .S files.
2010-04-07 14:04:34 +00:00
Joel Sherrill
eabaf58988 2010-03-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/interr.h,
	score/src/objectinitializeinformation.c: Add new fatal error for
	configuring unlimited and maximum of 0.
2010-03-10 18:15:33 +00:00
Thomas Doerfler
b7de5ded7e User extension API: add const to some params, inline _User_extensions_Add_API_set 2010-01-26 15:01:56 +00:00
Glenn Humphrey
c6f7e060ea 2009-12-02 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* configure.ac, libcsupport/src/__times.c,
	libmisc/cpuuse/cpuusagedata.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c, rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c,
	score/include/rtems/score/thread.h, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Changed the configuration of statistics granularity to use just one
	define.
2009-12-02 18:15:16 +00:00
Thomas Doerfler
5ad790ffbb Added defines for initialization of empty chains. 2009-11-30 13:20:29 +00:00
Thomas Doerfler
9224a751b1 Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary(). 2009-11-30 13:06:21 +00:00
Ralf Corsepius
28352faecf Whitespace removal. 2009-11-29 13:51:53 +00:00
Ralf Corsepius
20f02c63a7 Whitespace removal. 2009-11-28 05:58:54 +00:00
Joel Sherrill
517655cde4 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/thread.h: Revert accidentally committed
	change. It is possible that _Thread_Dispatch_disable_level can be an
	8-bit variable but this impacts assembly and must be carefully
	considered.
2009-11-09 11:35:36 +00:00
Joel Sherrill
94d9beecf4 2009-10-30 Glenn Humphrey <glenn.humphrey@oarcorp.com>
PR pr1462/cpukit
	* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c,
	score/include/rtems/score/thread.h: Fix bugs in rate monotonic
	statistics.
2009-10-30 17:54:29 +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
Joel Sherrill
3f727f980e 2009-09-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/capture/capture.c, posix/src/pthread.c, rtems/src/tasks.c,
	score/include/rtems/score/userext.h: Eliminate use of deprecated
	rtems_extension. Re-add prototype for _User_extensions_Add_API_set.
2009-09-26 16:17:00 +00:00
Joel Sherrill
c42d1a459b 2009-09-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sapi/include/rtems/extension.h, sapi/src/extensiondelete.c,
	sapi/src/extensionident.c, sapi/src/extensioncreate.c,
	sapi/inline/rtems/extension.inl, score/include/rtems/score/userext.h,
	score/src/userextthreaddelete.c, score/src/userext.c,
	score/src/userextthreadcreate.c, score/src/userextremoveset.c,
	score/src/userextthreadbegin.c, score/src/userextaddset.c,
	score/src/userextthreadstart.c, score/src/userextthreadswitch.c,
	score/src/userextthreadrestart.c: Documentation. The types
	User_extensions_routine and rtems_extension are now deprecated.
	Removed unused types User_extensions_thread_post_switch_extension and
	rtems_task_post_switch_extension. Renamed _User_extensions_Add_API_set()
	in _User_extensions_Add_set(). Renamed _User_extensions_Add_set() in
	_User_extensions_Add_set_with_table().
	* score/src/userextaddapiset.c: Removed file.
	* score/Makefile.am: Update.
2009-09-25 17:51:46 +00:00
Joel Sherrill
e89faf3ef4 2009-09-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* score/src/heap.c, score/include/rtems/score/heap.h: Reduced alignment
 	requirement for CPU_ALIGNMENT from four to two.
2009-09-25 17:49:32 +00:00
Joel Sherrill
bacf79e0b9 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
	score/src/threadstackfree.c: Disable capability for API to let user
	provide thread stack when no API configured includes this capability.
2009-09-13 21:00:11 +00:00
Joel Sherrill
8907a01c00 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/coresem.h, score/src/coresemseize.c:
	Disable body of _CORE_semaphore_Seize() if it is not used because all
	APIs using it are disabled.
2009-09-13 20:54:01 +00:00
Joel Sherrill
0fa8b4d1b0 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/tod.h: Fix typo.
2009-09-13 20:50:56 +00:00
Joel Sherrill
507d38261d 2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/coremsg.h,
	score/inline/rtems/score/coremsg.inl, score/src/coremsg.c,
	score/src/coremsginsert.c, score/src/coremsgseize.c,
	score/src/coremsgsubmit.c, score/src/objectnametoidstring.c: Disable
	the Core Message Queue features of notification, priority messages,
	and blocking sends when no API requires them.
2009-09-11 20:00:30 +00:00
Joel Sherrill
442eac699d 2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/thread.h, score/src/threadhandler.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c:
	Disable thread protocol and scheduling capabilities not exercised
	when POSIX or ITRON API is disabled.
2009-09-11 15:35:52 +00:00
Joel Sherrill
47988fb37b 2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/object.h,
	score/inline/rtems/score/object.inl,
	score/src/objectgetnameasstring.c, score/src/objectidtoname.c,
	score/src/objectinitializeinformation.c,
	score/src/objectnamespaceremove.c, score/src/objectnametoidstring.c,
	score/src/objectsetname.c, score/src/thread.c,
	score/src/threadcreateidle.c: Disable object string name support when
	POSIX is not enabled.
2009-09-11 14:54:29 +00:00
Joel Sherrill
518c2aeba2 2009-09-09 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* score/include/rtems/score/heap.h, score/inline/rtems/score/heap.inl,
	score/src/heapallocate.c, score/src/heap.c, score/src/heapextend.c,
	score/src/heapresizeblock.c, score/src/heapwalk.c: Documenation.
	Simplified block resize. Improved heap walk. Changed heap layout to
	avoid a special case for _Heap_Is_used() and _Heap_Is_free().
	* libmisc/stackchk/check.c: Update for heap API changes.
2009-09-09 14:58:37 +00:00
Joel Sherrill
dea3eccb38 2009-09-06 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* libcsupport/src/free.c, libmisc/stackchk/check.c,
	rtems/include/rtems/rtems/region.h, rtems/src/regioncreate.c,
	rtems/src/regionextend.c, rtems/src/regiongetinfo.c,
	rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
	rtems/src/regionresizesegment.c, score/src/pheapallocate.c,
	score/src/pheapallocatealigned.c, score/src/pheapextend.c,
	score/src/pheapfree.c, score/src/pheapgetblocksize.c,
	score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c,
	score/src/pheapgetsize.c, score/src/pheapinit.c,
	score/src/pheapresizeblock.c, score/src/pheapwalk.c:
	Update for heap API changes.
	* score/include/rtems/score/apimutex.h,
	score/include/rtems/score/object.h: Documentation.
	* score/include/rtems/score/heap.h,
	score/include/rtems/score/protectedheap.h,
	score/inline/rtems/score/heap.inl, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapallocatealigned.c,
	score/src/heapextend.c, score/src/heapfree.c,
	score/src/heapgetfreeinfo.c, score/src/heapgetinfo.c,
	score/src/heapresizeblock.c, score/src/heapsizeofuserarea.c,
	score/src/heapwalk.c: Overall cleanup. Added boundary constraint to
	allocation function. More changes follow.
2009-09-06 15:24:08 +00:00
Joel Sherrill
56e171066d 2009-09-04 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* rtems/src/taskmode.c, sapi/src/exshutdown.c,
	score/include/rtems/score/sysstate.h,
	score/inline/rtems/score/sysstate.inl: Added
	_System_state_Is_shutdown().  Removed direct uses of
	_System_state_Current.  Documentation.
2009-09-04 13:09:48 +00:00
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
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
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
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
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
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