Commit Graph

6500 Commits

Author SHA1 Message Date
Sebastian Huber
9deaa215ac 2011-01-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/show_bdbuf.c, score/src/objectmp.c,
	score/src/threadmp.c: Avoid chain API violations.
2011-01-20 09:18:00 +00:00
Sebastian Huber
61380a5451 2011-01-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/show_bdbuf.c, score/src/objectmp.c: Avoid chain API
	violations.
2011-01-20 08:16:15 +00:00
Joel Sherrill
2946682d59 2011-01-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_dd.c: Make symbol unique to avoid conflict with
	same name in <sys/stat.h>.
2011-01-17 23:05:36 +00:00
Joel Sherrill
f16c0591a2 2011-01-17 Alin Rus <alin.codejunkie@gmail.com>
* posix/src/aio_cancel.c: Fixed ending of if braces.

2011-01-17	Alin Rus <alin.codejunkie@gmail.com>

	* posix/src/aio_misc.c: Add debug information. Fixed idle_threads/
	active_threads issues. Fixed infinite loop in rtems_aio_handle().
2011-01-17 22:12:48 +00:00
Joel Sherrill
6c48b5358c 2011-01-08 Alin Rus <alin.codejunkie@gmail.com>
* posix/src/aio_misc.c: Fix rtems_aio_remove_req did not iterate
	over chain.
	* posix/src/aio_cancel.c: Add debug information. Add check for
	bad file descriptor. Add else branch for cancel request on empty
	IQ chain.
2011-01-08 21:01:32 +00:00
Joel Sherrill
3030975ab6 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/error.c: Scheduler Simulator compilation always
	defines __RTEMS_VIOLATE_KERNEL_VISIBILITY__. So avoid redefinition
	warning.
2011-01-04 19:53:14 +00:00
Joel Sherrill
a84d456ce2 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_readlink.c: readlink
	filesystem entry should return ssize_t.
2011-01-04 19:18:09 +00:00
Joel Sherrill
8633e8f084 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/aio_cancel.c: Use perfd field not next_fd.
2011-01-04 18:38:58 +00:00
Joel Sherrill
f447932fc0 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/nfsclient/src/nfs.c: readlink filesystem entry should
	return ssize_t.
2011-01-04 18:32:59 +00:00
Joel Sherrill
031785a6cd 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: _Thread_Executing was not used.
2011-01-04 15:33:31 +00:00
Sebastian Huber
d00b7a5a3f 2010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/msdos_conv.c: Fixed convertion of half seconds to
	seconds.
2010-12-28 09:55:57 +00:00
Sebastian Huber
3ae59505d0 2010-12-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/msdos_misc.c: Create short file names acceptable for
	Windows.
2010-12-28 08:46:57 +00:00
Sebastian Huber
45edf78e36 2010-12-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_misc.c,
	libfs/src/dosfs/msdos_create.c: Create valid create and modfied date
	and time.
2010-12-27 14:35:13 +00:00
Joel Sherrill
5aecf664d9 2010-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
Jennifer Averett <jennifer.averett@oarcorp.com>

	Add RTEMS Scheduler Simulator.
	* sapi/include/confdefs.h: This adds some simple conditional
	logic to disable portions of the configuration that are NOT supported
	when configuring an RTEMS instance for use with a Scheduler Simulator
	instance.
2010-12-17 14:56:06 +00:00
Sebastian Huber
4e21c9a5b1 2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/cpuuse/cpuusagereport.c: We have to take the time since the
	last context switch before the uptime.
2010-12-16 15:46:34 +00:00
Sebastian Huber
18657d189d 2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/watchdognanoseconds.c: New file.
	* score/Makefile.am: Reflect change above.
	* score/include/rtems/score/watchdog.h, score/src/coretodget.c,
	score/src/coretodgetuptime.c: Do not allow NULL as nanoseconds since
	last tick handler pointer.
2010-12-16 14:50:12 +00:00
Sebastian Huber
6c6b2f13f4 2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/loop.h, libnetworking/net/if_loop.c,
	libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c:
	Initialize loop back interface during normal initialization via
	rtems_bsdnet_initialize_network().
2010-12-08 10:30:27 +00:00
Joel Sherrill
57e278dab9 2010-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, posix/src/signal_2.c: sighandler_t is defined
	conditionally in some versions of newlib and unconditionally in
	others. Make sure we always compile.
2010-12-03 20:34:24 +00:00
Sebastian Huber
10ace498cb 2010-11-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Revert
	previous commit due to too many broken linker command files.  The
	HAVE_INITFINI_ARRAY is defined for nearly all targets by Newlib, but
	only few linker command files respect this.
2010-11-30 08:15:35 +00:00
Sebastian Huber
d6a72fff81 2010-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Added
	support for .preinit_array, .init_array and .fini_array sections.
2010-11-29 14:14:27 +00:00
Sebastian Huber
5c4e0c5947 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sapi/include/confdefs.h, score/include/rtems/score/scheduler.h,
	score/inline/rtems/score/scheduler.inl,
	score/inline/rtems/score/schedulerpriority.inl,
	score/src/schedulerpriority.c,
	score/src/schedulerprioritythreadschedulerallocate.c,
	score/src/schedulerprioritythreadschedulerfree.c,
	score/src/schedulerprioritythreadschedulerupdate.c,
	score/src/schedulerpriorityyield.c: Added attribute unused.  Renamed
	types and fields to follow the Score naming conventions.
2010-11-25 13:24:26 +00:00
Sebastian Huber
215f4014e6 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/scheduler.h,
	score/include/rtems/score/schedulerpriority.h: Whitespace removal.
	Moved C++ extern directive.
2010-11-25 12:42:50 +00:00
Sebastian Huber
76da5fa89d 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1711/cpukit
	* score/inline/rtems/score/chain.inl, score/src/chain.c: New functions
	_Chain_Immutable_head(), _Chain_Immutable_tail(),
	_Chain_Immutable_first(), and _Chain_Immutable_last().  The
	Chain_Control is now a union to avoid casts.  The function
	_Chain_Is_empty() takes now a const pointer parameter.
2010-11-25 11:48:11 +00:00
Sebastian Huber
ce002b161d 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/dosfs/fat_file.c, libfs/src/imfs/imfs_debug.c,
	libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_getchild.c,
	posix/src/killinfo.c, score/inline/rtems/score/schedulerpriority.inl,
	score/inline/rtems/score/watchdog.inl, score/src/apiext.c,
	score/src/chain.c, score/src/coremsgflushsupp.c,
	score/src/coremsginsert.c, score/src/objectshrinkinformation.c,
	score/src/schedulerpriorityyield.c,
	score/src/threadqdequeuepriority.c,
	score/src/threadqenqueuepriority.c,
	score/src/threadqextractpriority.c, score/src/threadqfirstfifo.c,
	score/src/threadqfirstpriority.c, score/src/threadyieldprocessor.c,
	score/src/userextthreadbegin.c, score/src/userextthreadcreate.c,
	score/src/userextthreaddelete.c, score/src/userextthreadrestart.c,
	score/src/userextthreadstart.c, score/src/userextthreadswitch.c,
	score/src/watchdogreportchain.c: Avoid chain API violations.
2010-11-25 09:27:06 +00:00
Joel Sherrill
0faa9dad07 2010-11-24 Gedare Bloom <giddyup44@yahoo.com>
PR 1647/cpukit
	* posix/src/nanosleep.c, posix/src/sched_yield.c,
	rtems/src/taskwakeafter.c, sapi/include/confdefs.h,
	sapi/include/rtems/config.h, sapi/src/exinit.c, score/Makefile.am,
	score/preinstall.am, score/include/rtems/score/prioritybitmap.h,
	score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl, score/src/thread.c,
	score/src/threadchangepriority.c, score/src/threadclearstate.c,
	score/src/threadclose.c, score/src/threadinitialize.c,
	score/src/threadready.c, score/src/threadresume.c,
	score/src/threadsetpriority.c, score/src/threadsetstate.c,
	score/src/threadsettransient.c,	score/src/threadsuspend.c,
	score/src/threadtickletimeslice.c: Refactor scheduler out of thread
	handler to facilitate alternate scheduler implementations.
	* score/src/threadyieldprocessor.c: Removed.
	* score/src/schedulerprioritythreadschedulerupdate.c,
	score/src/schedulerprioritythreadschedulerfree.c,
	score/src/schedulerpriorityblock.c, score/src/scheduler.c,
	score/src/schedulerprioritythreadschedulerallocate.c,
	score/src/schedulerpriorityunblock.c,
	score/src/schedulerpriority.c, score/src/schedulerpriorityyield.c,
	score/include/rtems/score/schedulerpriority.h,
	score/include/rtems/score/scheduler.h,
	score/inline/rtems/score/scheduler.inl,
	score/inline/rtems/score/schedulerpriority.inl: New files.
2010-11-24 15:51:28 +00:00
Joel Sherrill
505866a0d8 Remove duplicate entry. 2010-11-23 23:44:06 +00:00
Sebastian Huber
db26513608 2010-11-23 Gedare Bloom <giddyup44@yahoo.com>
PR 1719/cpukit
	* arm_exc_abort.S: Avoid "bx" instruction to support ARMv4 and below.
2010-11-23 15:59:18 +00:00
Sebastian Huber
8720a3a509 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Avoid dead code if POSIX API is enabled.
2010-11-23 15:26:52 +00:00
Sebastian Huber
4e3d9b8a84 2010-11-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/iterateoverthreads.c, libmisc/cpuuse/cpuusagereport.c:
	Fixed NULL pointer access in case POSIX API is disabled.
2010-11-23 14:59:05 +00:00
Sebastian Huber
71c8457dc0 2010-11-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Set alignment requirements according to AAPCS.
2010-11-22 13:06:46 +00:00
Sebastian Huber
3ff9156f6b 2010-11-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/monitor/mon-monitor.c: Fixed broken monitor command list.
2010-11-19 09:44:21 +00:00
Joel Sherrill
02591de7de 2010-11-16 Gedare Bloom <giddyup44@yahoo.com>
* rtems/score/sparc64.h: Fix typo.
2010-11-16 23:22:47 +00:00
Joel Sherrill
db5f1341c2 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1718/cpukit
	* sapi/include/confdefs.h: POSIX threads are allocated twice the
	minimum stack space by default. confdefs.h only accounts for one
	minimum -- not the 2x factor.
2010-11-16 19:14:10 +00:00
Joel Sherrill
80675f0d64 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1717/cpukit
	* libcsupport/src/gxx_wrappers.c: Free memory on error.
2010-11-16 18:51:34 +00:00
Joel Sherrill
c8b3806d1a 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Move node code into multiprocessing
	ifdef.
2010-11-16 17:51:02 +00:00
Joel Sherrill
16d7b65331 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectnametoid.c, score/src/objectnametoidstring.c:
	Remove useless variable pointed out by clang.
	* score/src/threadstackallocate.c: Remove useless variable
	initialization pointed out by clang.
2010-11-16 17:50:26 +00:00
Joel Sherrill
5290c5aeb8 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c:
	Remove unchecked return status pointed out by clang.
2010-11-16 17:48:06 +00:00
Joel Sherrill
fd83f1687d 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/putk.c: Remove useless variable initialization
	pointed out by clang.
2010-11-16 17:47:06 +00:00
Joel Sherrill
fc8a8aab53 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove unused variable reported by clang.
2010-11-16 17:41:56 +00:00
Sebastian Huber
fc75117609 2010-11-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/userext.h: Documentation.
2010-11-11 13:37:03 +00:00
Sebastian Huber
42d6ed845a 2010-11-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/watchdoginsert.c: Removed superfluous cast and use
	appropriate API function.  This special case handling is obsolete
	since 2006 with the introduction of compiler memory barriers in the
	interrupt routines.  Removed obsolete comments.
2010-11-09 09:14:10 +00:00
Joel Sherrill
2e5a8933c1 2010-11-06 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1715/cpukit
	* rtems/score/cpu.h: Fix typo on _CPU_Context_Restart_self.
2010-11-06 22:32:06 +00:00
Joel Sherrill
1123658086 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make compile again.
	* sapi/src/io.c, score/src/heap.c: Address dead assignment
	issues found by clang.
2010-11-04 23:00:04 +00:00
Joel Sherrill
16b1546e0b 2010-11-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Address casting issue highlighted by clang.
	There was no need for an intermediate cast to a structure pointer.
2010-11-04 22:22:49 +00:00
Joel Sherrill
5f92568509 2010-11-01 Alin Rus <alin.codejunkie@gmail.com>
* posix/include/rtems/posix/aio_misc.h, posix/src/aio_misc.c: Small
	fixes.
2010-11-01 17:32:53 +00:00
Sebastian Huber
4b25ab8b9c 2010-10-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Added HID2 define.  Fixed comments.
2010-10-29 07:32:30 +00:00
Joel Sherrill
a5ba675808 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/psignalunblockthread.c: Formatting.
2010-10-21 22:27:16 +00:00
Joel Sherrill
ed553f0bcf 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/mutextimedlock.c: Check status local variable not
	lock_status.
2010-10-21 22:21:09 +00:00
Joel Sherrill
479cbaf81d 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
	_CPU_Context_restore() because it does not return. Telling GCC this
	avoids generation of dead code.
2010-10-21 22:18:05 +00:00
Sebastian Huber
6366c2e2a6 2010-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/lib/ftpfs.c: Do not fall back to BOOTP server address
	in case hostname was not specified.
2010-10-19 09:16:20 +00:00