Commit Graph

14890 Commits

Author SHA1 Message Date
Till Straumann
bc0ff4737c 2008-01-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/irq.c: When unhooking
	and ISR only disable IRQs at the PIC if we are
	unhooking the last ISR.
2008-01-10 18:25:47 +00:00
Joel Sherrill
5b33dc8076 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/wkspace.h,
	score/inline/rtems/score/wkspace.inl, score/src/wkspace.c: Do not
	inline _Workspace_Free or _Workspace_Allocate since they are not
	always inlined and actually smaller overall as subroutines. They are
	not particularly time critical so inlining is not absolutely
	necessary.
2008-01-09 22:35:10 +00:00
Joel Sherrill
4d3200628d 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/cond.h,
	posix/include/rtems/posix/mutex.h, posix/inline/rtems/posix/cond.inl,
	posix/inline/rtems/posix/mutex.inl: Do not include POSIX Mutex or
	Condition Variable object get helpers because they are more
	complicated than the norm. They can implicitly perform a create. They
	cross the line as being too complex and large to inline since they
	negatively impact size and binary test coverage.
	* posix/src/condget.c, posix/src/mutexget.c: New files.
2008-01-09 22:08:31 +00:00
Joel Sherrill
7fbe680567 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add src/malloc_dirtier.c.
	* libcsupport/include/rtems/malloc.h: Add malloc dirty support.
	* libcsupport/src/malloc_p.h: Correct prototype.
2008-01-09 21:24:30 +00:00
Joel Sherrill
8daaa21556 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/coremutex.h,
	score/src/coremutexseizeintr.c: Fix conditional code for inlining
	_CORE_mutex_Seize_interrupt_trylock() and add comments.
2008-01-09 21:11:04 +00:00
Joel Sherrill
bfc54b08c8 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Add CONFIGURE_MALLOC_DIRTY.
2008-01-09 21:09:54 +00:00
Joel Sherrill
635865aefd 2008-01-09 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_deferred.c,
	libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_sbrk_helpers.c,
	libcsupport/src/posix_memalign.c: Place all deferred free code and
	place it in subroutines. Add plugin for dirtying allocated memory to
	assist in debugging. Clean up comments and spacing as needed.
	* libcsupport/src/malloc_dirtier.c: New file.
2008-01-09 21:08:36 +00:00
Joel Sherrill
b9e23917f0 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* monitor02/.cvsignore: New file.
2008-01-09 20:50:21 +00:00
Joel Sherrill
4ff7e0f401 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectgetnoprotection.c: Eliminate duplicate exit path code
	when there is an error.
2008-01-09 20:49:44 +00:00
Joel Sherrill
43fa4fc476 2008-01-09 Eric Norum <norume@aps.anl.gov>
* include/bsp.h: Include <bsp/vectors.h>.
2008-01-09 20:37:48 +00:00
Joel Sherrill
3408806956 2008-01-09 Eric Norum <norume@aps.anl.gov>
* custom/mvme3100.cfg: Add make-cxx-exe rule.
2008-01-09 20:37:14 +00:00
Jennifer Averett
bbbe941321 2008-01-09 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/keycreate.c, rtems/src/eventseize.c,
	score/include/rtems/score/interr.h: Rearranged source to allow more
	test coverage.
2008-01-09 19:32:52 +00:00
Jennifer Averett
dee3992f93 2008-01-09 Jennifer Averett <jennifer.averett@OARcorp.com>
* Makefile.am, configure.ac: Added automatic test for monitor shell
	* monitor02/Makefile.am, monitor02/init.c, monitor02/monitor02.scn,
	monitor02/system.h: New files.
2008-01-09 19:01:28 +00:00
Joel Sherrill
29ab6a0ea0 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/__assert.c: Clean up and make __assert() call
	__assert_func().
2008-01-09 16:37:40 +00:00
Joel Sherrill
b36dc03c90 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__assert.c: Newlib 1.16.0 adds __assert_func(). We
	need to have it also.
2008-01-09 15:40:19 +00:00
Joel Sherrill
cfcc4e202d 2008-01-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add malloc_sbrk_helpers.c.
	* libcsupport/include/rtems/malloc.h,
	libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c,
	libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_statistics_helpers.c: Make sbrk()
	support pluggable and optional.  This eliminates the need for
	heap extend and sbrk in the minimum footprint which is ~2.5K on
	the SPARC.
	* sapi/include/confdefs.h: Add the following configuration points:
	  + CONFIGURE_MALLOC_STATISTICS
	  + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
	* libcsupport/src/malloc_sbrk_helpers.c: New file.
2008-01-08 22:59:14 +00:00
Joel Sherrill
c8f8ffdd08 2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add sp40 to test some cases of dynamic
	driver registration.
	* sp40/.cvsignore, sp40/Makefile.am, sp40/init.c, sp40/sp40.scn,
	sp40/system.h: New files.
2008-01-08 18:27:29 +00:00
Joel Sherrill
bc2b8df658 2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/Makefile.am: Add missing file.
2008-01-08 17:33:00 +00:00
Jennifer Averett
b1ebcb6cc8 Revert accidental commit of test code. 2008-01-07 18:10:57 +00:00
Joel Sherrill
0e97a7fa5b 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-manager.c: Style. Eliminate tabs.
2008-01-07 17:53:11 +00:00
Joel Sherrill
694bd9f68e 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am: Add new files.
	* libmisc/shell/internal.h: Prototype for rtems_shell_print_heap_info()
	* libmisc/shell/main_mallocinfo.c: Use rtems_shell_print_heap_info().
	* libmisc/shell/shellconfig.h: Add wkspace command.
	* libmisc/shell/main_wkspaceinfo.c,
	libmisc/shell/print_heapinfo.c: New files.
2008-01-07 17:46:25 +00:00
Joel Sherrill
c961c06bbe 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/isr.inl: Fix spacing.
	* score/src/apimutexallocate.c: Fix spacing.
	* score/src/coremsgseize.c: Check for message pending instead of
	message pending count to avoid dead code from inlined chain routine.
	It checks if the chain is empty so is redundant to count == 0.
2008-01-07 15:33:33 +00:00
Joel Sherrill
a87bbe9bb7 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/eventseize.c, rtems/src/eventtimeout.c: Minor style clean
	up.
2008-01-07 15:31:18 +00:00
Joel Sherrill
580004a27c 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/pthreadcreate.c: Add commit.
	* posix/src/pthreadinitthreads.c: Fix line length.
2008-01-07 15:30:21 +00:00
Joel Sherrill
1ccbd63a6a 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/object.inl: Add _Objects_Is_api_valid.
2008-01-07 15:29:14 +00:00
Joel Sherrill
52e70cf409 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadget.c: Use _Objects_Is_api_valid rather than open
	coding it.
2008-01-07 15:28:31 +00:00
Joel Sherrill
14a64dc59e 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen07.c, sp09/screen12.c, sp09/screen14.c, sp09/sp09.scn
	Add test cases for:
	  + message queue create requesting too many message buffers
	    for the available memory
	  + region extend with address inside existing heap
	  + timer server initiate too large a stack, create error
	* sp12/pritask.c, sp12/sp12.scn: Add test cases for:
	  + task set priority while holding resource
2008-01-07 15:26:46 +00:00
Joel Sherrill
cd30436141 Convert to UNIX CR/LF. 2008-01-07 15:10:31 +00:00
Joel Sherrill
fa9889742a 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Added sp38 and sp39.
	* sp38/.cvsignore, sp38/Makefile.am, sp38/init.c, sp38/sp38.scn,
	sp38/system.h, sp39/.cvsignore, sp39/Makefile.am, sp39/init.c,
	sp39/sp39.scn, sp39/system.h: New files.
2008-01-07 15:07:47 +00:00
Chris Johns
a61cc6c28f 2008-01-05 Chris Johns <chrisj@rtems.org>
* libchip/flash/am29lv160.c: Update the blank check error message
	to say there is an error.
2008-01-05 06:59:11 +00:00
Chris Johns
a5de1ef5fc 2008-01-05 Chris Johns <chrisj@rtems.org>
* configure.ac: Fix typo in the strict order mutex CPU OPTs test.
	* libmisc/shell/shell.c: Handle '#' comment characters correctly.
	* libblock/include/rtems/flashdisk.h: Add docmentation about the
	control fields. Add more control fields to handle the flash when
	full.
	* libblock/src/flashdisk.c: Fix the descriptor erase test so it
	detects a descriptor is erased. Add support for unavailable blocks
	the user can configure. Print the used list as a diag. Fix the bug
	when a page is detected as failed and present on more than one
	queue. Add a count to the queues so queue length can be used to
	manage compaction.
2008-01-05 06:57:17 +00:00
Till Straumann
74ee68dd00 2008-01-03 Till Straumann <strauman@slac.stanford.edu>
* bsp_specs: added crtend.o back to the endfiles. Otherwise,
	C++ static constructors are not executed because the
	call to __do_global_ctors_aux() is emitted into the .init
	section by this endfile (yes, the endfile contributes to .init).
2008-01-04 07:16:03 +00:00
Till Straumann
42fce5d39b 2008-01-03 Till Straumann <strauman@slac.stanford.edu>
* score/src/threadhandler.c, sapi/src/exshutdown.c:
	cannot call _fini via atexit() from rtems_shutdown_executive()
	because at the point where rtems_shutdown_executive is called
	the C-library is already dead.
	Instead, register an atexit(_fini) after calling _init().
2008-01-04 06:38:06 +00:00
Joel Sherrill
4779963688 2007-12-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am: _rename_r is required by newlib 1.16.0.
	Hopefully this implementation is OK.
	* libcsupport/src/_rename_r.c: New file.
2007-12-28 18:55:31 +00:00
Chris Johns
107f4d3446 2007-12-22 Chris Johns <chrisj@rtems.org>
* nfsclient/src/nfs.c, nfsclient/src/rpcio.c: Adjust the length of
	the hello message. Just one line but still a little too long.
2007-12-22 08:29:36 +00:00
Chris Johns
e85eb70bc7 2007-12-14 Chris Johns <chrisj@rtems.org>
* gdb-init: Make the first hb temporary.
	* network/network.c: Add support for reading the MAC address from
	the FEC if set by the boot monitor. dBug does not do this unless
	the network is used which is a shame.
2007-12-22 08:28:57 +00:00
Chris Johns
1ff9922df0 2007-12-22 Chris Johns <chrisj@rtems.org>
* configure.ac: fixed bug that always enabled strict order
	mutexes.
	* score/inline/rtems/score/coremutex.inl: Fixed coding standard.
	* score/src/coremutex.c: Add the holder's thread to the lock_mutex
	list if the mutex is initialised locked.
	* libnetworking/rtems/rtems_glue.c: Changed semaphore error
	message to show the error is an rtems-net error.
	* libmisc/monitor/mon-network.c: Removed warnings.
	* telnetd/icmds.c: Changed shell_* to rtems_shell_*.
	* score/Makefile.am: Fixed typo that stopped 'make tags' working.
	* libmisc/shell/err.c, libmisc/shell/err.h, libmisc/shell/errx.c,
	libmisc/shell/extern-cp.h, libmisc/shell/fts.c,
	libmisc/shell/fts.h, libmisc/shell/main_cp.c,
	libmisc/shell/utils-cp.c, libmisc/shell/verr.c,
	libmisc/shell/verrx.c, libmisc/shell/vwarn.c,
	libmisc/shell/vwarnx.c, libmisc/shell/warn.c,
	libmisc/shell/warnx.c: New. Ported from BSD.
	* libmisc/shell/shellconfig.h: Add the cp command.
	* libmisc/Makefile.am: Add the new files to the shell.
	* libmisc/shell/shell.c, libmisc/shell/shell.h: Add scripting
	support.
	* libblock/src/flashdisk.c: Fixed disk drive count size setting
	bug.
2007-12-22 08:27:18 +00:00
Joel Sherrill
e709ff4ae6 2007-12-21 Xi Yang <hiyangxi@gmail.com>
* rtems/src/semtranslatereturncode.c: Add support for proper stacking
	of priority inheritance on mutexes as well as enforce proper order of
	release.
2007-12-21 15:58:30 +00:00
Joel Sherrill
e2ba62d1ea 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, score/include/rtems/score/coremutex.h,
	score/inline/rtems/score/coremutex.inl: Add the ability to disable
	inlining coremutex seize. This reduces the code size and also
	improves the process of coverage analysis.
	* score/src/coremutexseizeintr.c: New file.
2007-12-21 15:57:22 +00:00
Joel Sherrill
03c6ff399e 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp36/strict_order_mut.c: New file.
2007-12-21 15:50:52 +00:00
Joel Sherrill
e8f4303a4c 2007-12-21 Xi Yang <hiyangxi@gmail.com>
* Makefile.am, configure.ac: Add support for proper stacking of
	priority inheritance on mutexes as well as enforce proper order of
	release.
	* sp36/.cvsignore, sp36/Makefile.am, sp36/sp36.doc,
	sp36/sp36.scn: New files.
2007-12-21 15:50:33 +00:00
Joel Sherrill
fd84982c00 2007-12-21 Xi Yang <hiyangxi@gmail.com>
* configure.ac, score/include/rtems/score/coremutex.h,
	score/include/rtems/score/thread.h,
	score/inline/rtems/score/coremutex.inl,
	score/src/coremutexsurrender.c, score/src/threadinitialize.c: Add
	support for proper stacking of priority inheritance on mutexes as
	well as enforce proper order of release.
2007-12-21 15:50:09 +00:00
Joel Sherrill
cd2255151a 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1268/cpukit
	* libcsupport/include/rtems/assoc.h: There is no
	rtems_assoc_ptr_by_value method.
2007-12-21 15:22:40 +00:00
Ralf Corsepius
21bc352675 Fix typo. 2007-12-21 05:10:54 +00:00
Ralf Corsepius
b98648062f Make gettimeofday() POSIX-compliant. 2007-12-21 05:10:31 +00:00
Ralf Corsepius
fbb5097c1b Make sync() POSIX-compliant. 2007-12-21 05:10:09 +00:00
Ralf Corsepius
468cd3736c 2007-12-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* src/sync.c: Make sync() POSIX-compliant.
	* libcsupport/src/__gettod.c: Make gettimeofday() POSIX-compliant.
2007-12-21 05:09:15 +00:00
Joel Sherrill
60256e86db 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/killinfo.c: Clean up and eliminate some dead code paths.
2007-12-20 22:39:34 +00:00
Joel Sherrill
2cbb5fc46f 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/include/rtems/posix/timer.h: Include rtems/score/object.h.
2007-12-20 22:39:08 +00:00
Joel Sherrill
47751810c3 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Use correct register name.
2007-12-20 22:38:07 +00:00