Commit Graph
5440 Commits
Author SHA1 Message Date
Ralf Corsepius 4e9e823765 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/inline/rtems/score/address.inl,
	score/inline/rtems/score/chain.inl,
	score/inline/rtems/score/corebarrier.inl,
	score/inline/rtems/score/coremsg.inl,
	score/inline/rtems/score/coremutex.inl,
	score/inline/rtems/score/coresem.inl,
	score/inline/rtems/score/corespinlock.inl,
	score/inline/rtems/score/heap.inl,
	score/inline/rtems/score/isr.inl,
	score/inline/rtems/score/mppkt.inl,
	score/inline/rtems/score/object.inl,
	score/inline/rtems/score/priority.inl,
	score/inline/rtems/score/stack.inl,
	score/inline/rtems/score/states.inl,
	score/inline/rtems/score/sysstate.inl,
	score/inline/rtems/score/thread.inl,
	score/inline/rtems/score/tqdata.inl,
	score/inline/rtems/score/watchdog.inl:
	Eliminate TRUE/FALSE.
2008-12-22 09:22:34 +00:00
Ralf Corsepius 6390256611 Eliminate TRUE/FALSE. 2008-12-22 09:22:17 +00:00
Ralf Corsepius 6d25a161b3 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if.c, libnetworking/net/if_ethersubr.c
	libnetworking/net/if_loop.c, libnetworking/net/raw_cb.c,,
	libnetworking/net/raw_usrreq.c, libnetworking/netinet/in.c,
	libnetworking/netinet/in_pcb.c, libnetworking/netinet/ip_divert.c,
	libnetworking/netinet/ip_input.c, libnetworking/netinet/ip_mroute.c,
	libnetworking/netinet/ip_output.c, libnetworking/netinet/raw_ip.c,
	libnetworking/netinet/tcp_debug.c, libnetworking/netinet/tcp_input.c,
	libnetworking/netinet/tcp_output.c, libnetworking/netinet/tcp_subr.c,
	libnetworking/netinet/tcp_timer.c, libnetworking/netinet/tcp_usrreq.c,
	libnetworking/netinet/udp_usrreq.c,
	libnetworking/rtems/rtems_mii_ioctl_kern.c,
	libnetworking/rtems/rtems_select.c,
	libnetworking/rtems/rtems_socketpair.c,
	libnetworking/rtems/rtems_syscall.c:
	Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism).
2008-12-22 07:47:49 +00:00
Ralf Corsepius b3f8c9e15b Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism). 2008-12-22 07:47:28 +00:00
Ralf Corsepius 91d6372f5b 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/context.h,
	score/include/rtems/score/corebarrier.h,
	score/include/rtems/score/coremsg.h,
	score/include/rtems/score/coremutex.h,
	score/include/rtems/score/corerwlock.h,
	score/include/rtems/score/coresem.h,
	score/include/rtems/score/heap.h,
	score/include/rtems/score/isr.h,
	score/include/rtems/score/object.h,
	score/include/rtems/score/objectmp.h,
	score/include/rtems/score/protectedheap.h,
	score/include/rtems/score/thread.h,
	score/include/rtems/score/threadq.h,
	score/include/rtems/score/tod.h,
	score/include/rtems/score/userext.h,
	score/include/rtems/score/wkspace.h:
	Eliminate TRUE/FALSE.
2008-12-22 06:05:45 +00:00
Ralf Corsepius c6b37199d9 Eliminate TRUE/FALSE. 2008-12-22 06:05:34 +00:00
Ralf Corsepius 063f66f898 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/apimutex.c, score/src/apimutexallocate.c,
	score/src/apimutexlock.c, score/src/corebarrierwait.c,
	score/src/coremsg.c, score/src/coremsgseize.c,
	score/src/coremutexseize.c, score/src/coremutexsurrender.c,
	score/src/coresemseize.c, score/src/coretod.c,
	score/src/coretodset.c, score/src/heapfree.c,
	score/src/heapsizeofuserarea.c, score/src/heapwalk.c,
	score/src/interr.c, score/src/isr.c,
	score/src/mpci.c, score/src/objectinitializeinformation.c,
	score/src/objectmp.c, score/src/objectnametoid.c,
	score/src/objectnametoidstring.c, score/src/objectsetname.c,
	score/src/thread.c, score/src/threadblockingoperationcancel.c,
	score/src/threadchangepriority.c, score/src/threadclearstate.c,
	score/src/threadcreateidle.c, score/src/threaddispatch.c,
	score/src/threadevaluatemode.c, score/src/threadhandler.c,
	score/src/threadinitialize.c, score/src/threadmp.c,
	score/src/threadqextractpriority.c,
	score/src/threadqextractwithproxy.c,
	score/src/threadqrequeue.c, score/src/threadready.c,
	score/src/threadresettimeslice.c, score/src/threadrestart.c,
	score/src/threadresume.c, score/src/threadrotatequeue.c,
	score/src/threadsetstate.c, score/src/threadstartmultitasking.c,
	score/src/threadsuspend.c, score/src/threadyieldprocessor.c,
	score/src/timespecgreaterthan.c, score/src/timespecisvalid.c,
	score/src/timespeclessthan.c, score/src/userextthreadcreate.c,
	score/src/wkspace.c: Eliminate TRUE/FALSE.
2008-12-22 05:52:44 +00:00
Ralf Corsepius aae7f1a12b Eliminate TRUE/FALSE. 2008-12-22 05:52:32 +00:00
Ralf Corsepius 52cece81c4 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libi2c/libi2c.h: Change header guard to RTEMS conventions.
	Add extern's.
2008-12-22 04:36:28 +00:00
Ralf Corsepius 1e62bd9915 Change header guard to RTEMS conventions.
Add extern's.
2008-12-22 04:36:04 +00:00
Ralf Corsepius ab92255414 Remove tic4x. 2008-12-22 03:58:22 +00:00
Ralf Corsepius fd9d071056 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4: Remove tic4x.
2008-12-22 03:58:12 +00:00
Joel Sherrill 6fee03898f 2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_statistics_helpers.c: Use intptr_t not
	ssize_t.
2008-12-21 21:29:03 +00:00
Joel Sherrill 27b7e81d91 2008-12-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/object.inl, score/src/objectgetbyindex.c:
	Fix issues when using 16-bit object Ids.
2008-12-21 21:28:05 +00:00
Joel Sherrill b7b450efac 2008-12-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/itronsys/types.h: Derive ITRON ID type from Objects_Id
	to avoid sizing mismatches.
2008-12-19 19:30:37 +00:00
Joel Sherrill 1de98d9713 2008-12-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/dpmemcreate.c: Spacing.
	* rtems/src/timerserver.c: Move error check to RTEMS_DEBUG. Cannot
	happen under normal circumstances.
2008-12-19 16:32:33 +00:00
Joel Sherrill eb96196183 2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/ide_part_table.c: Fixed NULL pointer access.
	* libmisc/monitor/mon-command.c, libmisc/monitor/mon-editor.c,
	libmisc/monitor/mon-monitor.c, libmisc/monitor/monitor.h,
	libmisc/shell/cmds.c: The list of registered monitor commands is now
	private and only accessible via a lookup and iterate function.
2008-12-19 14:59:35 +00:00
Joel Sherrill 738ea75250 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* zutil.c, zutil.h: Make code match prototype to eliminate warnings.
2008-12-18 20:49:37 +00:00
Joel Sherrill 584ab9e16e 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/regionmp.h, sapi/include/rtems/config.h,
	sapi/src/exinit.c, score/Makefile.am,
	score/include/rtems/score/object.h,
	score/include/rtems/score/objectmp.h, score/src/objectmp.c: Eliminate
	Object Handler Initialization routine since it was all for MP
	configurations.
	* score/src/object.c: Removed.
2008-12-18 17:15:13 +00:00
Joel Sherrill b6bebc3bed 2008-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/cmds.c: Revert back to public. Used to execute monitor
	commands in test code.
2008-12-18 17:14:26 +00:00
Joel Sherrill e41eaa881a 2008-12-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h:
	Fixed incompatible return value.

	* libmisc/cpuuse/cpuusagereport.c: Changed output format.

	* libmisc/Makefile.am, libmisc/monitor/mon-editor.c: New file.

	* libmisc/capture/capture-cli.c, libmisc/monitor/mon-command.c,
	libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c,
	libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-symbols.c,
	libmisc/monitor/monitor.h, libmisc/shell/cat_file.c,
	libmisc/shell/cmds.c, libmisc/shell/internal.h,
	libmisc/shell/main_help.c, libmisc/shell/shell.c,
	libmisc/shell/shell.h, libmisc/shell/shell_cmdset.c,
	libmisc/shell/shell_getchar.c, libmisc/shell/str2int.c: Various global
	data is now read only.  Added 'const' qualifier to many pointer
	parameters.  It is no longer possible to remove monitor commands.
	Moved monitor line editor into a separate file to avoid unnecessary
	dependencies.
2008-12-18 15:25:27 +00:00
Joel Sherrill 790b50b8da 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/extension.h, sapi/include/rtems/io.h,
	sapi/src/exinit.c, sapi/src/extension.c, sapi/src/io.c,
	score/include/rtems/score/mpci.h, score/include/rtems/score/object.h,
	score/include/rtems/score/thread.h, score/include/rtems/score/tod.h,
	score/include/rtems/score/userext.h,
	score/include/rtems/score/wkspace.h, score/src/coretod.c,
	score/src/mpci.c, score/src/object.c, score/src/thread.c,
	score/src/userext.c, score/src/wkspace.c: Convert SAPI manager and
	SuperCore Handler initialization routines to directly pull parameters
	from configuration table.
2008-12-17 22:46:05 +00:00
Joel Sherrill e06ecec518 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/config.h,
	itron/include/rtems/itron/eventflags.h,
	itron/include/rtems/itron/fmempool.h,
	itron/include/rtems/itron/mbox.h,
	itron/include/rtems/itron/msgbuffer.h,
	itron/include/rtems/itron/port.h,
	itron/include/rtems/itron/semaphore.h,
	itron/include/rtems/itron/task.h,
	itron/include/rtems/itron/vmempool.h, itron/src/eventflags.c,
	itron/src/fmempool.c, itron/src/itroninittasks.c,
	itron/src/itronsem.c, itron/src/mbox.c, itron/src/msgbuffer.c,
	itron/src/port.c, itron/src/task.c, itron/src/vmempool.c,
	sapi/src/itronapi.c: Convert ITRON manager initialization routines to
	directly pull parameters from configuration table.
2008-12-17 22:12:24 +00:00
Joel Sherrill 7252caf20a 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/config.h: Fix typo.
2008-12-17 22:12:01 +00:00
Joel Sherrill 309e2f6f8b 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/barrier.h,
	posix/include/rtems/posix/cond.h, posix/include/rtems/posix/key.h,
	posix/include/rtems/posix/mqueue.h,
	posix/include/rtems/posix/mutex.h,
	posix/include/rtems/posix/psignal.h,
	posix/include/rtems/posix/pthread.h,
	posix/include/rtems/posix/ptimer.h,
	posix/include/rtems/posix/rwlock.h,
	posix/include/rtems/posix/semaphore.h,
	posix/include/rtems/posix/spinlock.h,
	posix/include/rtems/posix/timer.h, posix/src/cond.c, posix/src/key.c,
	posix/src/mqueue.c, posix/src/mutex.c, posix/src/pbarrier.c,
	posix/src/prwlock.c, posix/src/psignal.c, posix/src/pspin.c,
	posix/src/pthread.c, posix/src/pthreadinitthreads.c,
	posix/src/ptimer.c, posix/src/semaphore.c, sapi/src/posixapi.c:
	Convert POSIX manager initialization routines to directly pull
	parameters from configuration table.
2008-12-17 21:23:37 +00:00
Joel Sherrill db80f11c9c 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/Makefile.am, rtems/include/rtems/rtems/attr.h,
	rtems/include/rtems/rtems/barrier.h,
	rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/intr.h,
	rtems/include/rtems/rtems/message.h,
	rtems/include/rtems/rtems/part.h,
	rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/sem.h,
	rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
	rtems/src/barrier.c, rtems/src/dpmem.c, rtems/src/msg.c,
	rtems/src/part.c, rtems/src/ratemon.c, rtems/src/region.c,
	rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/tasks.c,
	sapi/src/rtemsapi.c: Convert manager initialization routines to
	directly pull parameters from configuration table. Eliminate empty
	routines sportted.
	* rtems/src/intr.c: Removed.
2008-12-17 20:21:40 +00:00
Ralf Corsepius 051072f546 Regenerate. 2008-12-17 06:43:28 +00:00
Ralf Corsepius 0fd062bc10 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Remove include/rtems/stdint.h.
	* include/rtems/stdint.h: Remove.
2008-12-17 06:41:52 +00:00
Ralf Corsepius b8c5277fcd Remove include/rtems/stdint.h. 2008-12-17 06:41:36 +00:00
Ralf Corsepius 5726c42b3f Remove (Abandoned). 2008-12-17 06:41:21 +00:00
Ralf Corsepius 52a634e998 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require stdint.h.
2008-12-17 06:39:14 +00:00
Ralf Corsepius 314b835657 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/m68k.h: Don't include rtems/score/types.h,
	rtems/stdint.h.
2008-12-17 06:35:31 +00:00
Ralf Corsepius 7ebc58c0dd 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/timespec.h: #include <stdint.h>,
	#include <time.h>. Remove bogus #include <sys/types.h>.
2008-12-17 05:53:04 +00:00
Ralf Corsepius 36225a23f3 #include <stdint.h>, #include <time.h>. Remove bogus #include <sys/types.h>. 2008-12-17 05:52:53 +00:00
Joel Sherrill e47948c218 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-config.c: Configuration table entry
	work_space_size was not removed.
2008-12-16 23:36:19 +00:00
Joel Sherrill 26fb4aadcd 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/bdbuf.c, libmisc/capture/capture-cli.c,
	libmisc/capture/capture.c, libmisc/mw-fb/mw_uid.c,
	rtems/include/rtems/rtems/support.h, score/Makefile.am,
	score/include/rtems/score/tod.h, score/src/coretod.c,
	score/src/coretodtickle.c: Eliminate all public use of TOD conversion
	routines. Eliminate _TOD_Microseconds_per_tick and let every place
	use the field directly from the Configuration Table. This required
	moving some methods from macros to bodies.
	* score/src/coretodmsecstoticks.c, score/src/coretodtickspersec.c,
	score/src/coretodusectoticks.c: New files.
2008-12-16 20:53:34 +00:00
Joel Sherrill 3d66dfc1cb 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__times.c, posix/src/adjtime.c,
	posix/src/clockgetres.c, posix/src/sysconf.c,
	rtems/src/clockgettickspersecond.c, rtems/src/clockgettod.c,
	rtems/src/clockset.c, rtems/src/clocktodvalidate.c,
	score/src/timespecfromticks.c, score/src/timespectoticks.c,
	score/src/ts64toticks.c: More case converted to use configuration
	table entry not _TOD_Microseconds_per_tick.
2008-12-16 17:36:01 +00:00
Joel Sherrill 237f4611d2 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libgnat/adasupp.c: Add helper method so Ada binding does not
	reference _TOD_Microseconds_per_tick.
2008-12-16 15:59:26 +00:00
Joel Sherrill 2b9968add9 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/config.h: Remove commented out lines. Add macro
	for rtems_configuration_get_nanoseconds_per_tick().
2008-12-16 15:39:49 +00:00
Joel Sherrill aac75d3b9b 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/itronapi.h, libmisc/capture/capture.c,
	libmisc/monitor/mon-config.c, libmisc/monitor/mon-driver.c,
	libmisc/monitor/mon-itask.c, libmisc/monitor/mon-mpci.c,
	posix/include/rtems/posix/config.h,
	posix/include/rtems/posix/posixapi.h,
	rtems/include/rtems/rtems/config.h,
	rtems/include/rtems/rtems/rtemsapi.h, rtems/src/taskinitusers.c,
	sapi/include/confdefs.h, sapi/include/rtems/config.h,
	sapi/include/rtems/init.h, sapi/src/exinit.c, sapi/src/itronapi.c,
	sapi/src/posixapi.c, sapi/src/rtemsapi.c, score/src/isr.c,
	score/src/thread.c, score/src/threadcreateidle.c,
	score/src/threadstackallocate.c, score/src/threadstackfree.c,
	score/src/wkspace.c: Eliminate pointers to API configuration tables
	in the main configuration table. Reference the main configuration
	table and the API configuration tables directly using the confdefs.h
	version rather than obtaining a pointer to it. This eliminated some
	variables, a potential fatal error, some unnecessary default
	configuration structures. Overall, about a 4.5% reduction in the code
	size for minimum and hello on the SPARC.
2008-12-15 19:21:01 +00:00
Joel Sherrill 197170b01c 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/types.h: Fix incorrect type name.
2008-12-15 19:09:49 +00:00
Joel Sherrill 41eb1e4090 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h,
	rtems/src/regioncreate.c, rtems/src/regionextend.c,
	rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
	rtems/src/regionmp.c, rtems/src/regionresizesegment.c,
	sapi/include/rtems/config.h, score/include/rtems/score/heap.h,
	score/include/rtems/score/protectedheap.h, score/src/heap.c,
	score/src/heapallocate.c, score/src/heapallocatealigned.c,
	score/src/heapextend.c, score/src/heapresizeblock.c,
	score/src/heapsizeofuserarea.c, score/src/pheapallocate.c,
	score/src/pheapallocatealigned.c, score/src/pheapextend.c,
	score/src/pheapgetblocksize.c, score/src/pheapresizeblock.c: Change
	sizes of heap/region and allocated objects in heap to intptr_t so
	they can be larger than a single allocatable object (e.g. size_t).
2008-12-14 22:48:54 +00:00
Joel Sherrill a6608123c0 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/src/chg_pri.c, itron/src/cre_tsk.c, itron/src/rot_rdq.c,
	posix/Makefile.am, posix/include/rtems/posix/mutex.h,
	posix/include/rtems/posix/priority.h, posix/src/mutex.c,
	score/include/rtems/score/priority.h: Run all tests successfully with
	maxixum number of priorities as 16 instead of 256. This was done by
	temporarily modifying the score priority.h maximum. This allowed
	testing of all API code to ensure that it worked properly with a
	reduced number of priorities. Most modifications were to switch from
	hard-coded maximum to using the SuperCore variable based upon
	configured number.
	* posix/src/mutexdefaultattributes.c: Removed.
2008-12-14 18:31:43 +00:00
Joel Sherrill dc09259b10 2008-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/address.inl: Make offset arguments intptr_t
	not int32_t.
2008-12-11 21:10:52 +00:00
Joel Sherrill 78aa0609b4 2008-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.c: Remove warnings -- even if code is just temporary.
2008-12-11 21:10:26 +00:00
Ralf Corsepius ee45afc3ce 2008-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if_arp.h, libnetworking/net/route.h:
	Include <sys/socket.h> to make header self contained.
2008-12-11 17:28:42 +00:00
Ralf Corsepius fc2f722ac9 Include <sys/socket.h> to make header self contained. 2008-12-11 17:28:33 +00:00
Ralf Corsepius 600a0560ff 2008-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* zlib/zconf.h: #include <stdint.h> instead of <rtems/stdint.h>.
2008-12-11 00:48:11 +00:00
Ralf Corsepius 1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00
Ralf Corsepius 2a701530b7 2008-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/arm/rtems/score/types.h,
	score/cpu/avr/rtems/score/types.h,
	score/cpu/bfin/rtems/score/types.h,
	score/cpu/c4x/rtems/score/types.h,
	score/cpu/h8300/rtems/score/types.h,
	score/cpu/i386/rtems/score/types.h,
	score/cpu/lm32/rtems/score/types.h,
	score/cpu/m32c/rtems/score/types.h,
	score/cpu/m32r/rtems/score/types.h,
	score/cpu/m68k/rtems/score/types.h,
	score/cpu/mips/rtems/score/types.h,
	score/cpu/nios2/rtems/score/types.h,
	score/cpu/no_cpu/rtems/score/types.h,
	score/cpu/powerpc/rtems/score/types.h,
	score/cpu/sh/rtems/score/types.h,
	score/cpu/sparc/rtems/score/types.h,
	score/cpu/unix/rtems/score/types.h:
	#include <stdint.h> instead of <rtems/stdint.h>.
2008-12-11 00:46:02 +00:00