Commit Graph

4206 Commits

Author SHA1 Message Date
Joel Sherrill
e15aa41e9c 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac: Add ARM/Thumb Makefile.
2007-11-06 22:53:43 +00:00
Joel Sherrill
7afd0b130b 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* .cvsignore, ChangeLog, Makefile.am, thumb_isr.c: New files.
2007-11-06 22:53:06 +00:00
Joel Sherrill
661e5de43b 2007-11-03 Ray Xu <rayx.cn@gmail.com>
* cpu.c, cpu_asm.S, score/cpu.h : add support for ARM<->THUMB veneer
          thumb  new dir to controll CPSR/SPRS in thumb mode

2007-05-09      Ray Xu <rayx.cn@gmail.com>

        * cpu.c: move do_data_abort() to libbsp/arm/shared/abort/
          implement a compact do_data_abort() in simple_abort.c
2007-11-06 22:51:08 +00:00
Joel Sherrill
1d0efc105e 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1266/cpukit
	* posix/src/keycreate.c, posix/src/keyrundestructors.c: Use API instead
	of class for key indexing.
2007-11-06 21:39:23 +00:00
Joel Sherrill
081583c661 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* telnetd/icmds.c, telnetd/pty.c, telnetd/telnetd.c, telnetd/telnetd.h:
	Fix headers and formatting.
2007-11-06 20:50:10 +00:00
Glenn Humphrey
8a8f5b263a 2007-11-06 Glenn Humphrey <glenn.humphrey@OARcorp.com>
Miscellaneous changes made after a review against the POSIX spec.
	* posix/src/pbarrierinit.c, posix/src/prwlockinit.c: If the caller
	passes a NULL in the attributes parameter, default attributes are used.
	* posix/src/prwlockdestroy.c: If there is at least one thread
	waiting, do not allow deletion.
	* posix/src/prwlockwrlock.c: Corrected parameter passed to the core
	operation used to obtain a RWLock for writing.
	* posix/src/pspinlocktranslatereturncode.c,
	score/include/rtems/score/corespinlock.h,
	score/src/corespinlockrelease.c: If the current thread is not the
	holder of the lock, do not allow an unlock and return EPERM.
	* score/src/corerwlockobtainwrite.c: Corrected to use the operation
	for queueing with a timeout handler.
2007-11-06 19:52:36 +00:00
Joel Sherrill
48816d7d7a 2007-11-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/cpu/sparc/cpu.c, score/cpu/sparc/rtems/score/cpu.h,
	score/include/rtems/score/context.h, score/src/threadhandler.c: Fix
	stack so gdb backtrace does not print corrupted frame message after
	_Thread_Handler. Daniel Hellstrom <daniel@gaisler.com> provided the
	SPARC implementation and I made it more general.
2007-11-02 13:35:02 +00:00
Glenn Humphrey
b0ac06f8e9 2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* libmisc/cpuuse/cpuusagereport.c, rtems/src/ratemonreportstatistics.c:
	Cleaned up reports and fixed a bug related the printf format which
	resulted in lack of leading zeroes and misleading magnitude.
	* score/src/timespecdivide.c: Fixed bugs related to zero divide case.
2007-10-26 21:30:59 +00:00
Joel Sherrill
0e87deaa29 2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* itron/src/can_wup.c, itron/src/chg_pri.c, itron/src/del_mbf.c,
	itron/src/del_mbx.c, itron/src/del_sem.c, itron/src/del_tsk.c,
	itron/src/frsm_tsk.c, itron/src/ref_mbf.c, itron/src/ref_mbx.c,
	itron/src/ref_sem.c, itron/src/ref_tsk.c, itron/src/rel_wai.c,
	itron/src/rsm_tsk.c, itron/src/sig_sem.c, itron/src/snd_mbx.c,
	itron/src/sta_tsk.c, itron/src/sus_tsk.c, itron/src/ter_tsk.c,
	itron/src/trcv_mbf.c, itron/src/trcv_mbx.c, itron/src/tsnd_mbf.c,
	itron/src/twai_sem.c, posix/src/cancel.c, posix/src/conddestroy.c,
	posix/src/condinit.c, posix/src/condsignalsupp.c,
	posix/src/condwaitsupp.c, posix/src/keydelete.c,
	posix/src/keygetspecific.c, posix/src/keysetspecific.c,
	posix/src/mqueueclose.c, posix/src/mqueuegetattr.c,
	posix/src/mqueuenotify.c, posix/src/mqueuerecvsupp.c,
	posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c,
	posix/src/mutexdestroy.c, posix/src/mutexgetprioceiling.c,
	posix/src/mutexinit.c, posix/src/mutexlocksupp.c,
	posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c,
	posix/src/pbarrierdestroy.c, posix/src/pbarrierwait.c,
	posix/src/prwlockdestroy.c, posix/src/prwlockrdlock.c,
	posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
	posix/src/prwlocktryrdlock.c, posix/src/prwlocktrywrlock.c,
	posix/src/prwlockunlock.c, posix/src/prwlockwrlock.c,
	posix/src/pspindestroy.c, posix/src/pspinlock.c,
	posix/src/pspintrylock.c, posix/src/pspinunlock.c,
	posix/src/pthreaddetach.c, posix/src/pthreadequal.c,
	posix/src/pthreadgetschedparam.c, posix/src/pthreadjoin.c,
	posix/src/pthreadkill.c, posix/src/pthreadsetschedparam.c,
	posix/src/ptimer1.c, posix/src/semaphorewaitsupp.c,
	posix/src/semclose.c, posix/src/semdestroy.c,
	posix/src/semgetvalue.c, posix/src/sempost.c, posix/src/types.c,
	rtems/src/barrierdelete.c, rtems/src/barrierrelease.c,
	rtems/src/barrierwait.c, rtems/src/dpmemdelete.c,
	rtems/src/dpmemexternal2internal.c,
	rtems/src/dpmeminternal2external.c, rtems/src/eventsend.c,
	rtems/src/eventtimeout.c, rtems/src/msgqbroadcast.c,
	rtems/src/msgqdelete.c, rtems/src/msgqflush.c,
	rtems/src/msgqgetnumberpending.c, rtems/src/msgqreceive.c,
	rtems/src/msgqsend.c, rtems/src/msgqurgent.c, rtems/src/partdelete.c,
	rtems/src/partgetbuffer.c, rtems/src/partreturnbuffer.c,
	rtems/src/ratemoncancel.c, rtems/src/ratemondelete.c,
	rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemonresetstatistics.c,
	rtems/src/ratemontimeout.c, rtems/src/regiondelete.c,
	rtems/src/regionextend.c, rtems/src/regiongetfreeinfo.c,
	rtems/src/regiongetinfo.c, rtems/src/regiongetsegment.c,
	rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
	rtems/src/regionreturnsegment.c, rtems/src/semdelete.c,
	rtems/src/semflush.c, rtems/src/semobtain.c, rtems/src/semrelease.c,
	rtems/src/signalsend.c, rtems/src/taskdelete.c,
	rtems/src/taskgetnote.c, rtems/src/taskissuspended.c,
	rtems/src/taskrestart.c, rtems/src/taskresume.c,
	rtems/src/tasksetnote.c, rtems/src/tasksetpriority.c,
	rtems/src/taskstart.c, rtems/src/tasksuspend.c,
	rtems/src/taskvariableadd.c, rtems/src/taskvariabledelete.c,
	rtems/src/taskvariableget.c, rtems/src/timercancel.c,
	rtems/src/timerdelete.c, rtems/src/timerfireafter.c,
	rtems/src/timerfirewhen.c, rtems/src/timergetinfo.c,
	rtems/src/timerreset.c, rtems/src/timerserverfireafter.c,
	rtems/src/timerserverfirewhen.c, sapi/src/extensiondelete.c,
	score/include/rtems/score/object.h, score/src/corerwlocktimeout.c,
	score/src/mpci.c, score/src/objectgetnameasstring.c,
	score/src/threaddelayended.c, score/src/threadqtimeout.c: When
	multiprocessing is disabled, do not even allow the constant
	OBJECTS_REMOTE to appear in the source. Even at -O2, the presence of
	a case OBJECTS_REMOTE in each id->pointer _Objects_Get switch results
	in the generation of binary code which can NOT be reached.
2007-10-26 20:19:02 +00:00
Joel Sherrill
78dabb697c 2007-10-26 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/Makefile.am, score/include/rtems/score/thread.h,
	score/inline/rtems/score/thread.inl: No longer inline _Thread_Get. It
	resulted in unnessary code explosion, many uncovered paths when
	looking at binary executable coverage, and only optimized getting
	self. Id translations were still getting pushed to a subroutine call
	to _Objects_Get. Later the non-inlined version can be further
	optimized to get Ids in range for the current API, then self, then
	look at other APIs.
	* score/src/threadget.c: New file.
2007-10-26 19:44:10 +00:00
Thomas Doerfler
c47890cccf *** empty log message *** 2007-10-26 09:51:41 +00:00
Thomas Doerfler
abe0cdb169 added documentation to libi2c 2007-10-25 16:18:38 +00:00
Thomas Doerfler
55a685bddc added SPI support to libi2c
added IRQ support to MPC83xx i2c driver
added mpc83xx spi driver
2007-10-25 16:17:56 +00:00
Joel Sherrill
0a23c71433 2007-10-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/assoc.c: Removed.  Accidentally included routine
	also in another file.  Mistake after splitting.
	* libcsupport/Makefile.am: Reflect file removal.
2007-10-19 14:39:22 +00:00
Joel Sherrill
3f7786669c 2007-10-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/assoc.c: Removed.  Accidentally included routine
	also in another file.  Mistake after splitting.
2007-10-19 14:36:59 +00:00
Ralf Corsepius
57c56dbcea 2007-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netdb.h, libnetworking/libc/gethostnamadr.c,
	libnetworking/libc/getnetnamadr.c: Adjust to POSIX.
	Minor updates from FreeBSD.
2007-10-15 07:59:07 +00:00
Ralf Corsepius
807337d281 Adjust to POSIX. Minor updates from FreeBSD. 2007-10-15 07:59:00 +00:00
Joel Sherrill
b7fa289bf7 2007-10-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/copyrt.h: Update year.
2007-10-11 12:49:27 +00:00
Joel Sherrill
c57316a409 2007-10-11 Daniel Hellstrom <daniel@gaisler.com>
* libi2c/libi2c.c, libi2c/libi2c.h: Add message about needing IMFS.
	Fixed check of status when registering driver. Add use of strerror().
2007-10-11 12:46:50 +00:00
Ralf Corsepius
9aab34cd3d Regenerate. 2007-10-04 16:08:35 +00:00
Ralf Corsepius
b268e70e07 2007-10-04 Keith Robertson <kjrobert@alumni.uwaterloo.ca>,
Ralf Corsépius <ralf.corsepius@rtems.org>

	* libnetworking/ifaddrs.h, libnetworking/libc/getifaddrs.c,
	libnetworking/libc/if_indextoname.c,
	libnetworking/libc/if_nameindex.c: New (from FreeBSD)
	* Makefile.am: Add files above.
	* libnetworking/net/if.h: Add if_nameindex (from FreeBSD).
2007-10-04 16:08:15 +00:00
Ralf Corsepius
9df2ef1b6c 2007-10-04 Keith Robertson <kjrobert@alumni.uwaterloo.ca>,
Ralf Corsépius <ralf.corsepius@rtems.org>

	* libnetworking/ifaddrs.h, libnetworking/libc/getifaddrs.c,
	libnetworking/libc/if_indextoname.c,
	libnetworking/libc/if_nameindex.c: New (from FreeBSD)
	* Makefile.am: Add files above.
	* libnetworking/net/if.h: Add if_nameindex (from FreeBSD).
2007-10-04 14:24:27 +00:00
Ralf Corsepius
0295725f55 Add if_nameindex etc. (from FreeBSD). 2007-10-04 14:24:10 +00:00
Ralf Corsepius
3d2a28d738 New (from FreeBSD) 2007-10-04 14:23:45 +00:00
Joel Sherrill
0faa8b117e 2007-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Eliminate output with little information.
	Always print a blown message using the same routine. Now works with
	GNAT RTS -fstack-checking if you have patch for the RTEMS specific
	support in your GCC version.
2007-09-28 14:53:46 +00:00
Joel Sherrill
889fc2b5ca 2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/gxx_wrappers.c: Revert.
2007-09-25 21:39:45 +00:00
Joel Sherrill
995e2c0405 2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/gxx_wrappers.c, libmisc/monitor/mon-mpci.c: Use
	PRId32 to fix warning.
2007-09-25 21:39:05 +00:00
Joel Sherrill
a10128c072 2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* telnetd/passwd.h: New file.
2007-09-25 17:14:36 +00:00
Joel Sherrill
8ad6681b6b 2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* telnetd/README, telnetd/pty.c, telnetd/pty.h, telnetd/telnetd.c,
	telnetd/telnetd.h: telnetd rewrite.
	* telnetd/check_passwd.c, telnetd/des.c, telnetd/genpw.c: New files.
2007-09-25 17:14:01 +00:00
Joel Sherrill
b5bf8cd163 2007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1262/filesystem
	* libcsupport/Makefile.am, libnetworking/libc/herror.c,
	libnetworking/libc/res_send.c, libnetworking/sys/uio.h,
	telnetd/Makefile.am, telnetd/README, telnetd/preinstall.am,
	telnetd/pty.c, telnetd/telnetd.c: Add support for readv() and
	writev() including documentation and test case.
	* libcsupport/src/readv.c, libcsupport/src/writev.c: New files.
2007-09-24 21:35:10 +00:00
Joel Sherrill
6f57450dfe 2007-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/Makefile.am: Add dummy socketpair() implementation to
	document what is required to provide a fully functional
	implementation.
	* libnetworking/rtems/rtems_socketpair.c: New file.
2007-09-21 15:34:10 +00:00
Ralf Corsepius
90a51d8a49 2007-09-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/version.m4: Bump RTEMS_API to 4.9.
	Bump RTEMS_VERSION to 4.8.99.0.
2007-09-21 08:50:19 +00:00
Joel Sherrill
682a8ffad6 2007-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/read.c, libcsupport/src/write.c: Fix spacing.
2007-09-20 22:25:14 +00:00
Joel Sherrill
f393150407 2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/semaphorecreatesupp.c: Fixed warning.
2007-09-17 14:40:24 +00:00
Joel Sherrill
a6d5ea6b6b 2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dumpbuf/dumpbuf.c: Use printk.
2007-09-17 14:28:41 +00:00
Ralf Corsepius
e80aa4fae8 2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_defs.h: Include rtems/stdint.h.
	Use uint32_t for ext_accm.
2007-09-16 06:23:26 +00:00
Ralf Corsepius
b0ea4a492f 2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/auth.c, pppd/demand.c, pppd/ipcp.c, pppd/ipcp.h,
	pppd/lcp.c, pppd/lcp.h, pppd/magic.c, pppd/magic.h, pppd/options.c,
	pppd/pppd.h, pppd/sys-rtems.c, pppd/utils.c: Convert to using C99
	fixed-size types instead of BSD fixed-size types.
2007-09-16 04:14:22 +00:00
Ralf Corsepius
8a4f22e64e Convert to using C99 fixed-size types instead of BSD fixed-size types. 2007-09-16 04:13:48 +00:00
Joel Sherrill
33eeeb28dc 2007-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Fix alignment of output.
2007-09-14 22:53:39 +00:00
Joel Sherrill
15a47934fb 2007-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/monitor.h: Add network commands that were in the
	network supplement but not in the code.
	* libmisc/monitor/mon-network.c: New file.
2007-09-14 22:52:53 +00:00
Joel Sherrill
f2e3e3776d 2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1261/cpukit
	* posix/src/semaphorecreatesupp.c: Initialize all fields during
	semaphore creation.
2007-09-14 14:53:14 +00:00
Joel Sherrill
7349e6d086 2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1260/cpukit
	* posix/src/pthread.c: Get initial signals blocked from creating
	thread not from ourselves.
2007-09-14 14:44:03 +00:00
Joel Sherrill
eb8e793a0b 2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/watchdogtickle.c: Remove tabs.
2007-09-14 14:31:29 +00:00
Joel Sherrill
d1f0701909 2007-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1259/rtems
	* rtems/src/taskcreate.c: Initialize is_global in all cases since
	memory is not guaranteed to be zero.
2007-09-13 19:48:01 +00:00
Joel Sherrill
493e405cac 2007-09-12 Sergei Organov <osv@javad.com>
PR 1258/rtems
	* cpukit/score/src/heapallocatealigned.c (block_allocate): New routine.
	* cpukit/score/src/heapallocatealigned.c (_Heap_Allocate_aligned):
	Use block_allocate() instead of _Heap_Block_allocate(). Replace
	_Heap_Head(the_heap)->next with equivalent _Heap_First(the_heap).
	* cpukit/score/src/heap.c (_Heap_Allocate): fix comments according
	to changed block split strategy in _Heap_Allocate_aligned().
2007-09-12 20:11:33 +00:00
Joel Sherrill
c55364c4a2 2007-09-10 Alain Schaefer <alani@easc.ch>
* cpu_asm.S: Fix two problems:
	    - CC bit has been clobbered and was not correctly restored
	    - bfin hardware does not allow to read instructions from the L1
2007-09-10 22:24:57 +00:00
Joel Sherrill
891a825490 2007-09-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/printk.c: Remove unnecessary comments.
2007-09-10 14:20:55 +00:00
Joel Sherrill
a321f7a402 2007-09-10 Alain Schaefer <alani@easc.ch>
* rtems/bfin/bf533.h: Add more definitions.
2007-09-10 13:54:12 +00:00
Thomas Doerfler
908d6ed9d6 Corrected linked list of monitor commands 2007-09-10 06:43:18 +00:00
Joel Sherrill
1f49f77158 2007-09-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc.c: If RTEMS_HEAP_DEBUG is defined, add heap
	walk on init, malloc, and free. The ability to walk the heap appears
	to disappeared during the rework of the C Program heap to skip the
	Region.
2007-09-07 21:42:14 +00:00