Commit Graph

21 Commits

Author SHA1 Message Date
Joel Sherrill
8b53dee67b 2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
* score/src/objectinitializeinformation.c: Reverse sense of conditional
	and improve comment. Comment was right but brief, conditional was
	backwards.
2011-03-08 23:55:24 +00:00
Joel Sherrill
2af90ff1a1 2011-02-11 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/src/semtranslatereturncode.c,
	score/include/rtems/score/coremutex.h,
	score/src/coremutexsurrender.c,
	score/src/objectinitializeinformation.c: Disable code not reachable
	when POSIX is not enabled.
2011-02-11 20:38:16 +00:00
Joel Sherrill
8f0b33466b 2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
PR 1660/filesystem
	* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
	int pipe_release to void pipe_release.
	* libfs/src/imfs/imfs_fifo.c: Corresponding change to
	IMFS_fifo_close since pipe_release does not return any error.
	* libfs/src/imfs/imfs_initsupp.c: Changes to improve
	IMFS_determine_bytes_per_block
2010-08-10 17:41:32 +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
Joel Sherrill
2d2dcab250 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 5
	* score/src/objectinitializeinformation.c: Do not modify maximum
	parameter. Clean up and simplify code. This should help the Coverity
	path analysis to avoid reporting issues.
2010-01-19 19:33:08 +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
Ralf Corsepius
aae7f1a12b Eliminate TRUE/FALSE. 2008-12-22 05:52:32 +00:00
Ralf Corsepius
484a76996e Convert to "bool". 2008-09-04 17:46:39 +00:00
Joel Sherrill
2345d61bdc 2008-01-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/object.h,
	score/src/objectextendinformation.c,
	score/src/objectinitializeinformation.c,
	score/src/objectshrinkinformation.c: Eliminate name_table since it is
	not used.
2008-01-24 15:12:09 +00:00
Joel Sherrill
8e30a269a2 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
	libcsupport/src/free.c, libcsupport/src/malloc.c,
	libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_report_statistics_plugin.c,
	libmisc/shell/shell.c, libmisc/shell/shell.h,
	score/src/objectinitializeinformation.c: Add posix_memalign. Split
	out management of deferred frees to subroutines.
	* libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.
2007-12-19 16:03:54 +00:00
Joel Sherrill
50269c464a 2005-02-10 Joel Sherrill <joel@OARcorp.com>
PR 753/rtems
	* score/include/rtems/score/object.h,
	score/src/objectinitializeinformation.c: Configured number of objects
	needs to be of a type with more bits than Objects_Maximum to support
	configuring unlimited objects. The type for configuring the maximum
	number of objects should probably always be the same fundamental type
	as Object Id. For 16-bit Id configurations, the constant
	OBJECTS_UNLIMITED_OBJECTS was changed to 0x8000 to move in this
	direction.
2005-02-10 21:46:23 +00:00
Ralf Corsepius
a8eed2387c Include config.h. 2005-01-27 05:57:05 +00:00
Joel Sherrill
9b3f187a02 2004-11-29 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/mallocfreespace.c, rtems/Makefile.am,
	rtems/include/rtems/rtems/region.h, score/Makefile.am,
	score/include/rtems/score/heap.h, score/src/heapgetinfo.c: Add
	capability to return information about just the free blocks in a
	region or heap.  Also changed the semantics of free space available
	to be the largest block of memory that can be allocated.
	* rtems/src/regiongetfreeinfo.c, score/src/heapgetfreeinfo.c: New files.
	: score/include/rtems/score/object.h,
	score/src/objectinitializeinformation.c: Remove warning.
2004-11-29 22:45:43 +00:00
Joel Sherrill
c7b7f38098 2004-11-01 Joel Sherrill <joel@OARcorp.com>
* score/include/rtems/score/object.h, score/src/object.c,
	score/src/objectallocatebyindex.c, score/src/objectcomparenameraw.c,
	score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c,
	score/src/objectinitializeinformation.c: Fix bugs in previous commit.
	Now compiles.
2004-11-01 15:28:22 +00:00
Ralf Corsepius
a0ed4edee0 Remove stray white spaces. 2004-04-18 06:13:55 +00:00
Ralf Corsepius
05279b84b4 Remove stray white spaces. 2004-04-17 13:32:13 +00:00
Ralf Corsepius
3127180e74 2004-04-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* score/src/Unlimited.txt, score/src/chain.c, score/src/coremsg.c,
	score/src/coremsgbroadcast.c, score/src/coremsgclose.c,
	score/src/coremsgflush.c, score/src/coremsgflushsupp.c,
	score/src/coremsgseize.c, score/src/coremsgsubmit.c,
	score/src/coremutex.c, score/src/coremutexflush.c,
	score/src/coresem.c, score/src/coresemflush.c, score/src/coretod.c,
	score/src/coretodtickle.c, score/src/coretodtoseconds.c,
	score/src/coretodvalidate.c, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapextend.c,
	score/src/heapfree.c, score/src/heapsizeofuserarea.c,
	score/src/interr.c, score/src/iterateoverthreads.c,
	score/src/mpci.c, score/src/object.c, score/src/objectallocate.c,
	score/src/objectallocatebyindex.c, score/src/objectclearname.c,
	score/src/objectcomparenameraw.c,
	score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c,
	score/src/objectcopynamestring.c,
	score/src/objectextendinformation.c, score/src/objectfree.c,
	score/src/objectget.c, score/src/objectgetbyindex.c,
	score/src/objectgetisr.c, score/src/objectgetnoprotection.c,
	score/src/objectidtoname.c, score/src/objectinitializeinformation.c,
	score/src/objectmp.c, score/src/objectnametoid.c,
	score/src/objectshrinkinformation.c, score/src/thread.c,
	score/src/threadcreateidle.c, score/src/threadget.c,
	score/src/threadidlebody.c, score/src/threadinitialize.c,
	score/src/threadmp.c, score/src/threadq.c,
	score/src/threadqdequeuepriority.c,
	score/src/threadqenqueuepriority.c,
	score/src/threadqfirstpriority.c, score/src/threadqflush.c,
	score/src/threadreset.c, score/src/threadrestart.c,
	score/src/threadsettransient.c, score/src/threadstackallocate.c,
	score/src/threadstart.c, score/src/userext.c,
	score/src/watchdoginsert.c, score/src/wkspace.c: Convert to using
	c99 fixed size types.
2004-03-29 12:51:43 +00:00
Joel Sherrill
dd687d977e 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/rtems/debug.h, include/rtems/seterr.h,
	include/rtems/system.h, include/rtems/score/address.h,
	include/rtems/score/apiext.h, include/rtems/score/apimutex.h,
	include/rtems/score/bitfield.h, include/rtems/score/chain.h,
	include/rtems/score/context.h, include/rtems/score/copyrt.h,
	include/rtems/score/coremsg.h, include/rtems/score/coremutex.h,
	include/rtems/score/coresem.h, include/rtems/score/heap.h,
	include/rtems/score/interr.h, include/rtems/score/isr.h,
	include/rtems/score/mpci.h, include/rtems/score/mppkt.h,
	include/rtems/score/object.h, include/rtems/score/objectmp.h,
	include/rtems/score/priority.h, include/rtems/score/stack.h,
	include/rtems/score/states.h, include/rtems/score/sysstate.h,
	include/rtems/score/thread.h, include/rtems/score/threadmp.h,
	include/rtems/score/threadq.h, include/rtems/score/tod.h,
	include/rtems/score/tqdata.h, include/rtems/score/userext.h,
	include/rtems/score/watchdog.h, include/rtems/score/wkspace.h,
	inline/rtems/score/address.inl, inline/rtems/score/chain.inl,
	inline/rtems/score/coremsg.inl, inline/rtems/score/coremutex.inl,
	inline/rtems/score/coresem.inl, inline/rtems/score/heap.inl,
	inline/rtems/score/isr.inl, inline/rtems/score/mppkt.inl,
	inline/rtems/score/object.inl, inline/rtems/score/objectmp.inl,
	inline/rtems/score/priority.inl, inline/rtems/score/stack.inl,
	inline/rtems/score/states.inl, inline/rtems/score/sysstate.inl,
	inline/rtems/score/thread.inl, inline/rtems/score/threadmp.inl,
	inline/rtems/score/tod.inl, inline/rtems/score/tqdata.inl,
	inline/rtems/score/userext.inl, inline/rtems/score/watchdog.inl,
	inline/rtems/score/wkspace.inl, macros/rtems/score/address.inl,
	macros/rtems/score/chain.inl, macros/rtems/score/coremsg.inl,
	macros/rtems/score/coremutex.inl, macros/rtems/score/coresem.inl,
	macros/rtems/score/heap.inl, macros/rtems/score/isr.inl,
	macros/rtems/score/mppkt.inl, macros/rtems/score/object.inl,
	macros/rtems/score/objectmp.inl, macros/rtems/score/priority.inl,
	macros/rtems/score/stack.inl, macros/rtems/score/states.inl,
	macros/rtems/score/sysstate.inl, macros/rtems/score/thread.inl,
	macros/rtems/score/threadmp.inl, macros/rtems/score/tod.inl,
	macros/rtems/score/tqdata.inl, macros/rtems/score/userext.inl,
	macros/rtems/score/watchdog.inl, macros/rtems/score/wkspace.inl,
	src/apiext.c, src/chain.c, src/coremsg.c, src/coremsgbroadcast.c,
	src/coremsgclose.c, src/coremsgflush.c, src/coremsgflushsupp.c,
	src/coremsgflushwait.c, src/coremsginsert.c, src/coremsgseize.c,
	src/coremsgsubmit.c, src/coremutex.c, src/coremutexflush.c,
	src/coremutexseize.c, src/coremutexsurrender.c, src/coresem.c,
	src/coresemflush.c, src/coresemseize.c, src/coresemsurrender.c,
	src/coretod.c, src/coretodset.c, src/coretodtickle.c,
	src/coretodtoseconds.c, src/coretodvalidate.c, src/heap.c,
	src/heapallocate.c, src/heapextend.c, src/heapfree.c,
	src/heapgetinfo.c, src/heapsizeofuserarea.c, src/heapwalk.c,
	src/interr.c, src/isr.c, src/iterateoverthreads.c, src/mpci.c,
	src/object.c, src/objectallocate.c, src/objectallocatebyindex.c,
	src/objectclearname.c, src/objectcomparenameraw.c,
	src/objectcomparenamestring.c, src/objectcopynameraw.c,
	src/objectcopynamestring.c, src/objectextendinformation.c,
	src/objectfree.c, src/objectget.c, src/objectgetbyindex.c,
	src/objectgetisr.c, src/objectgetnext.c, src/objectgetnoprotection.c,
	src/objectidtoname.c, src/objectinitializeinformation.c,
	src/objectmp.c, src/objectnametoid.c, src/objectshrinkinformation.c,
	src/thread.c, src/threadchangepriority.c, src/threadclearstate.c,
	src/threadclose.c, src/threadcreateidle.c, src/threaddelayended.c,
	src/threaddispatch.c, src/threadevaluatemode.c, src/threadget.c,
	src/threadhandler.c, src/threadidlebody.c, src/threadinitialize.c,
	src/threadloadenv.c, src/threadmp.c, src/threadq.c,
	src/threadqdequeue.c, src/threadqdequeuefifo.c,
	src/threadqdequeuepriority.c, src/threadqenqueue.c,
	src/threadqenqueuefifo.c, src/threadqenqueuepriority.c,
	src/threadqextract.c, src/threadqextractfifo.c,
	src/threadqextractpriority.c, src/threadqextractwithproxy.c,
	src/threadqfirst.c, src/threadqfirstfifo.c,
	src/threadqfirstpriority.c, src/threadqflush.c, src/threadqtimeout.c,
	src/threadready.c, src/threadreset.c, src/threadresettimeslice.c,
	src/threadrestart.c, src/threadresume.c, src/threadrotatequeue.c,
	src/threadsetpriority.c, src/threadsetstate.c,
	src/threadsettransient.c, src/threadstackallocate.c,
	src/threadstackfree.c, src/threadstart.c,
	src/threadstartmultitasking.c, src/threadsuspend.c,
	src/threadtickletimeslice.c, src/threadyieldprocessor.c,
	src/userext.c, src/watchdog.c, src/watchdogadjust.c,
	src/watchdoginsert.c, src/watchdogremove.c, src/watchdogtickle.c,
	src/wkspace.c: URL for license changed.
2003-09-04 18:56:05 +00:00
Joel Sherrill
ef9505a92f 2002-07-01 Joel Sherrill <joel@OARcorp.com>
* Mega patch merge to change the format of the object IDs to
	loosen the dependency between the SCORE and the various APIs.
	There was considerable work to simplify the object name management
        and it appears that the name_table field is no longer needed.
	This patch also includes the addition of the internal mutex
	which is currently only used to protect some types of allocation
	and deallocation.  This significantly can reduce context
	switch latency under certain circumstances.  In particular,
	some heap/region operations were O(n) and had dispatching
	disabled.  This should help enormously.  With this merge,
	the patch is not as clean as it should be.  In particular,
	the documentation has not been modified to reflect the new object
	ID layout, the IDs in the test screens are not updated, and
	_Objects_Get_information needs to be a real routine not inlined.
	As part of this patch a lot of MP code for thread/proxy blocking
	was made conditional and cleaned up.
	* include/Makefile.am, include/rtems/score/coremsg.h,
	include/rtems/score/coremutex.h, include/rtems/score/coresem.h,
	include/rtems/score/object.h, include/rtems/score/threadq.h,
	inline/rtems/score/object.inl, inline/rtems/score/thread.inl,
	macros/rtems/score/object.inl, src/Makefile.am, src/coremsg.c,
	src/coremutex.c, src/coresem.c, src/mpci.c,
	src/objectcomparenameraw.c, src/objectextendinformation.c,
	src/objectinitializeinformation.c, src/objectnametoid.c,
	src/thread.c, src/threadclose.c, src/threadget.c, src/threadq.c,
	src/threadqextractwithproxy.c: Modified as part of above.
	* include/rtems/score/apimutex.h, src/objectgetnoprotection.c: New
	files.
2002-07-01 22:30:12 +00:00
Joel Sherrill
08311cc3a9 Updated copyright notice. 1999-11-17 17:51:34 +00:00
Joel Sherrill
317a5b52b5 Split object.c into multiple files. 1999-11-02 19:43:52 +00:00