Commit Graph

14859 Commits

Author SHA1 Message Date
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
Joel Sherrill
fe88171c49 2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsignal01/.cvsignore, psxualarm/.cvsignore: New files.
2007-12-20 21:53:04 +00:00
Joel Sherrill
b5c6ecf707 2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp07/task1.c, sp34/changepri.c, sp35/priinv.c: Add rtems_task_self()
	directive instead of violating RTEMS internals.
2007-12-20 21:52:24 +00:00
Joel Sherrill
23a0607ef1 2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/tasks.h: Add
	rtems_task_self() directive.
	* rtems/src/taskself.c: New file.
2007-12-20 21:51:23 +00:00
Joel Sherrill
6bd316209b 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c: Add test cases suggested by Sergei Organov
	<s.organov@javad.com>.
2007-12-20 20:58:11 +00:00
Jennifer Averett
0b78bc4d01 2007-12-20 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/Makefile.am, posix/src/kill.c, posix/src/killinfo.c: Split file
	and resolved copyright information.
	* posix/src/kill_r.c: New file.
2007-12-20 19:32:03 +00:00
Jennifer Averett
c3a8293b75 2007-12-20 Jennifer Averett <jennifer.averett@OARcorp.com>
* Makefile.am, configure.ac: Added test for ualarm
	* psxualarm/Makefile.am, psxualarm/init.c, psxualarm/psxualarm.scn,
	psxualarm/system.h: New files.
2007-12-20 18:19:15 +00:00
Jennifer Averett
090edf3901 2007-12-20 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/ualarm.c: Fixed bug where iteration did not work correctly.
2007-12-20 18:11:24 +00:00
Ralf Corsepius
07c40af537 New. 2007-12-20 16:14:58 +00:00
Ralf Corsepius
ab56160b4b Regenerate. 2007-12-20 16:13:08 +00:00
Ralf Corsepius
d8536e840b Add %{?_smp_mflags}. 2007-12-20 16:12:09 +00:00
Ralf Corsepius
c55ed1d294 Prepare upgrade to newlib-1.16.0. 2007-12-20 16:11:34 +00:00
Joel Sherrill
b1bf5a9be0 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Revert. Requires info not available at
	preprocessing time.
2007-12-19 21:05:39 +00:00
Joel Sherrill
e287d94667 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Catch the error when the user lowers the
	maximum number of drivers below the number of statically configured
	ones.
2007-12-19 20:57:27 +00:00
Joel Sherrill
30cd539354 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/src/extension.c, sapi/src/extensioncreate.c,
	sapi/src/extensiondelete.c, sapi/src/extensionident.c: Extension
	Manager clean up. Update object id switches to new pattern. Catch
	some NULL parameter errors.
2007-12-19 20:55:55 +00:00
Joel Sherrill
79542d7a8b 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp07/init.c, sp07/system.h, sp07/tdelete.c, sp07/sp07.scn:
	Add test cases for User Extension Manager to improve code coverage.
	* sp21/task1.c: Fix spelling error.
2007-12-19 20:51:51 +00:00
Jennifer Averett
030fee5b02 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/psignalunblockthread.c: Remove source that
2007-12-19 19:13:54 +00:00
Jennifer Averett
e63c48fc02 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/psignalchecksignal.c: Make assert active during debug mode
	only
2007-12-19 18:48:21 +00:00
Jennifer Averett
1378d39e0d 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/psignal.c: Move source around to enable path testing
2007-12-19 18:46:12 +00:00
Jennifer Averett
7689b49ee9 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
* Makefile.am, configure.ac: Added posix signal test
	* psxsignal01/Makefile.am, psxsignal01/init.c,
	psxsignal01/psxsignal01.scn, psxsignal01/system.h,
	psxsignal01/task1.c: New files.
2007-12-19 18:41:15 +00:00
Joel Sherrill
bbd655a3d5 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* spsize/size.c: Account for previous changes in calculation of MPCI
	receive server stack.
2007-12-19 16:05:56 +00:00
Joel Sherrill
e1a22c112c 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c, malloctest/task1.c: Add test for posix_memalign.
2007-12-19 16:05:32 +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
543fe82061 2007-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/preinstall.am,
	libcsupport/src/malloc.c, libcsupport/src/mallocinfo.c,
	libmisc/Makefile.am, libmisc/shell/main_mallocinfo.c,
	libmisc/shell/shellconfig.h: Split malloc.c into multiple files with
	one function per file. Also split out statistics into a separate file
	which can be plugged in dynamically. Right now, it is always in. I
	suspect that splitting the file removed more code than leaving
	statistics in. I tinkered with malloc information command in the
	shell. I resurrected the malloc arena code as malloc boundary. This
	code is now compiled all the time even though it does not appear to
	work.
	* libcsupport/include/rtems/malloc.h, libcsupport/src/_calloc_r.c,
	libcsupport/src/_free_r.c, libcsupport/src/_malloc_r.c,
	libcsupport/src/_realloc_r.c, libcsupport/src/calloc.c,
	libcsupport/src/free.c, libcsupport/src/malloc_boundary.c,
	libcsupport/src/malloc_get_statistics.c,
	libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h,
	libcsupport/src/malloc_report_statistics.c,
	libcsupport/src/malloc_report_statistics_plugin.c,
	libcsupport/src/malloc_statistics_helpers.c,
	libcsupport/src/malloc_walk.c, libcsupport/src/realloc.c,
	libmisc/shell/main_perioduse.c: New files.
2007-12-18 20:36:40 +00:00
Joel Sherrill
02c54f5ee5 2007-12-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds: Spacing.
	* startup/linkcmds.brs5l: Add wildcard to .bss section.
2007-12-18 14:29:05 +00:00
Joel Sherrill
55216fafdf 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_alias.c, libmisc/shell/main_blksync.c,
	libmisc/shell/main_cat.c, libmisc/shell/main_cd.c,
	libmisc/shell/main_chdir.c, libmisc/shell/main_chmod.c,
	libmisc/shell/main_chroot.c, libmisc/shell/main_cpuuse.c,
	libmisc/shell/main_date.c, libmisc/shell/main_dir.c,
	libmisc/shell/main_exit.c, libmisc/shell/main_help.c,
	libmisc/shell/main_id.c, libmisc/shell/main_logoff.c,
	libmisc/shell/main_ls.c, libmisc/shell/main_mallocinfo.c,
	libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c,
	libmisc/shell/main_mfill.c, libmisc/shell/main_mkdir.c,
	libmisc/shell/main_mmove.c, libmisc/shell/main_mount.c,
	libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c,
	libmisc/shell/main_mount_nfs.c, libmisc/shell/main_mount_tftp.c,
	libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c,
	libmisc/shell/main_pwd.c, libmisc/shell/main_rm.c,
	libmisc/shell/main_rmdir.c, libmisc/shell/main_stackuse.c,
	libmisc/shell/main_tty.c, libmisc/shell/main_umask.c,
	libmisc/shell/main_unmount.c, libmisc/shell/main_whoami.c,
	libmisc/shell/shell_cmdset.c, libmisc/shell/shellconfig.h: Change
	rtems_Shell_ to rtems_shell_.
2007-12-17 22:39:29 +00:00
Joel Sherrill
e586588471 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add malloc command
	with info and dump as replacement for older command. Fix what looked
	like a typo for mount sub-commands.
	* libmisc/shell/main_mallocinfo.c: New file.
	* libmisc/shell/main_mallocdump.c: Removed.
2007-12-17 22:37:29 +00:00
Joel Sherrill
ad9255bedd 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/src/mallocfreespace.c: Add
	malloc_info() routine.
	* libcsupport/src/mallocinfo.c: New file.
2007-12-17 22:36:45 +00:00
Joel Sherrill
0ca6d0d938 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.
2007-12-17 22:35:25 +00:00
Joel Sherrill
dbfc895efb 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Add print of current stack pointer and
	stack info even if stack checker is not initialized.
2007-12-17 22:34:28 +00:00
Joel Sherrill
c5a742efc3 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/printk.c: Style.
2007-12-17 21:02:09 +00:00
Joel Sherrill
d38494c8f8 2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/clock.c, include/bsp.h: Correct prototype of idle thread. Eric
	Norum pointed out this was wrong.
2007-12-17 18:18:17 +00:00