Commit Graph
1936 Commits
Author SHA1 Message Date
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
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 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 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
Ralf Corsepius 2fbaa9adb6 2008-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/readdir.c, libmd/md4.h, libmd/md5.h,
	libmisc/mw-fb/mw_fb.h, libnetworking/net/ppp_defs.h,
	libnetworking/net/slcompress.c, libnetworking/rtems/bsdnet/_types.h,
	libnetworking/sys/sysctl.h, librpc/include/rpc/types.h, pppd/pppd.h,
	rtems/include/rtems/rtems/types.h, score/include/rtems/system.h:
	#include <stdint.h> instead of <rtems/stdint.h>.
2008-12-11 00:40:50 +00:00
Ralf Corsepius 1e9f051ed4 2008-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/prog-cc.m4: Use -r instead of -Wl,-r to build *.rels.
2008-12-10 23:26:22 +00:00
Ralf Corsepius f0db402496 2008-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/strlcat.c: Add prototypes.
2008-12-10 23:05:37 +00:00
Ralf Corsepius 1dae578e19 2008-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/Makefile.am: Remove stray "\".
2008-12-10 23:02:49 +00:00
Joel Sherrill 9dc2c8d16e 2008-12-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c,
	score/include/rtems/score/thread.h, score/src/coretodgetuptime.c:
	Make all Thread and Period Statistics use publicly defined types. Do
	not leak the SuperCore Timestamp type through the APIs.
2008-12-10 22:13:28 +00:00
Joel Sherrill e57cb3c9df 2008-12-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/preinstall.am,
	score/include/rtems/score/timespec.h,
	score/include/rtems/score/timestamp.h: Add 64-bit implementation of
	SuperCore Timestamps. Tested on PowerPC/psim and SPARC/sis.
	* score/include/rtems/score/timestamp64.h, score/src/ts64addto.c,
	score/src/ts64divide.c, score/src/ts64dividebyinteger.c,
	score/src/ts64equalto.c, score/src/ts64getnanoseconds.c,
	score/src/ts64getseconds.c, score/src/ts64greaterthan.c,
	score/src/ts64lessthan.c, score/src/ts64set.c,
	score/src/ts64settozero.c, score/src/ts64subtract.c,
	score/src/ts64toticks.c, score/src/ts64totimespec.c: New files.
2008-12-09 21:27:35 +00:00
Ralf Corsepius 8c5d374340 2008-12-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libblock/src/bdbuf.c: Fix typo having crept in during
	  boolean->bool transition.
2008-12-09 14:44:07 +00:00
Ralf Corsepius 9376664581 2008-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/unix/cpu.c: Add prototypes, eliminate nested externs.
2008-12-09 08:35:43 +00:00
Joel Sherrill c16bcc009b 2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c, posix/src/clockgettime.c,
	posix/src/pthread.c, posix/src/timersettime.c,
	rtems/include/rtems/rtems/ratemon.h,
	rtems/src/clockgetsecondssinceepoch.c, rtems/src/clockgetuptime.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c,
	rtems/src/ratemonreportstatistics.c, rtems/src/taskwakewhen.c,
	rtems/src/timerfirewhen.c, rtems/src/timerserver.c,
	rtems/src/timerserverfirewhen.c, score/Makefile.am,
	score/preinstall.am, score/include/rtems/score/thread.h,
	score/include/rtems/score/tod.h, score/src/coretod.c,
	score/src/coretodget.c, score/src/coretodgetuptime.c,
	score/src/coretodset.c, score/src/coretodtickle.c,
	score/src/threaddispatch.c, score/src/threadinitialize.c: Add
	SuperCore handler Timestamp to provide an opaque class for the
	representation and manipulation of uptime, time of day, and the
	difference between two timestamps. By using SuperCore Timestamp, it
	is clear which methods and APIs really have to be struct timespec and
	which can be in an optimized native format.
	* score/include/rtems/score/timestamp.h,
	score/src/coretodgetuptimetimespec.c: New files.
2008-12-08 19:41:31 +00:00
Joel Sherrill 6d10c295ee 2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/nfsclient/src/nfs.c: Use
	rtems_clock_get_seconds_since_epoch() from public API.
2008-12-08 18:12:18 +00:00
Ralf Corsepius 21f0aacba1 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/Makefile.am: Remove RTEMS_RELLDFLAGS.
	* aclocal/prog-cc.m4: Add RTEMS_RELLDFLAGS hack.
2008-12-08 13:14:32 +00:00
Ralf Corsepius bbe9596cec 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/nfsclient/src/dirutils.c: #include <limits.h>.
2008-12-08 13:11:10 +00:00
Ralf Corsepius 19561560f8 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/include/rtems/rtems/clock.h: #include <sys/time.h>
2008-12-08 11:16:29 +00:00
Ralf Corsepius 266889191b 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* librpc/include/rpc/rpcent.h: #include <rpc/types.h>.
	* librpc/include/rpc/xdr.h: #include <rtems/bsd/sys/cdefs.h>.
2008-12-08 04:41:38 +00:00
Ralf Corsepius 6f7d5bc4f7 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/devfs/devfs.h: Add missing "extern"s.
	* libfs/src/imfs/imfs.h: Add missing "extern"s
	* libfs/src/pipe/pipe.h: Add missing "extern"s.
	Add extern "C" {}.
2008-12-08 04:38:44 +00:00
Ralf Corsepius 95c9861ce0 2008-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
	score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
	score/cpu/lm32/cpu.c, score/cpu/m32c/cpu.c, score/cpu/m32r/cpu.c,
	score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c, score/cpu/no_cpu/cpu.c,
	score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c, score/cpu/unix/cpu.c:
	Fix typo.
2008-12-07 11:26:10 +00:00
Joel Sherrill 6a6141606b 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/timespec.h: Remove unnecessary includes.
	Fix typo.
	* posix/include/rtems/posix/time.h, score/src/coretodget.c,
	score/src/coretodgetuptime.c: Add required include files which
	were formerly included from timespec.h
2008-12-05 22:27:47 +00:00
Joel Sherrill 3b3d005657 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/pipe/fifo.c: Do not include .inl files directly. Use .h
	files with kernel visibility violated until functionality exposed.
2008-12-05 21:54:06 +00:00
Ralf Corsepius e83a477132 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for functions in newlib.
2008-12-05 13:33:20 +00:00
Ralf Corsepius 8e518846a1 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Unconditionally compile files which now
          are in newlib.
2008-12-05 13:32:09 +00:00
Ralf Corsepius dd954461c3 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/Makefile.am: Unconditionally compile files which now
	  are in newlib.
2008-12-05 13:31:05 +00:00
Ralf Corsepius 08027bf11a 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/execl.c, posix/src/execle.c,
	posix/src/execlp.c, posix/src/execv.c,
	posix/src/execve.c, posix/src/execvp.c,
	posix/src/sleep.c, posix/src/usleep.c:
	Compile contents conditionally.
2008-12-05 06:44:50 +00:00
Ralf Corsepius 73c56eea4f 2008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/closedir.c, libcsupport/src/getcwd.c,
	libcsupport/src/isatty.c, libcsupport/src/opendir.c,
	libcsupport/src/readdir.c, libcsupport/src/readdir_r.c,
	libcsupport/src/rewinddir.c, libcsupport/src/seekdir.c,
	libcsupport/src/telldir.c, libcsupport/src/ttyname.c:
	Compile contents conditionally.
2008-12-05 06:42:51 +00:00
Joel Sherrill 15e44fd15b 2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* configure.ac, librpc/src/xdr/xdr_float.c, score/cpu/Makefile.am: Add
	Lattice Mico32 support.
2008-12-04 22:53:33 +00:00
Joel Sherrill b0aefa4ab2 2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1348/cpukit
	* rtems/src/ratemonperiod.c: Properly handle period statistics after
	cpu usage information is reset while a period is running.
2008-12-04 15:58:26 +00:00
Joel Sherrill 109ace3a1f 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1347/cpukit
	* rtems/include/rtems/rtems/timer.h, rtems/src/rtemstimer.c,
	rtems/src/timerreset.c, rtems/src/timerserver.c,
	rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c,
	score/Makefile.am, score/include/rtems/score/watchdog.h: Rework Timer
	Server to ensure that the context allows for blocking, allocating
	memory, and acquiring semaphores and mutexes.
	* score/src/watchdogadjusttochain.c: New file.
2008-12-03 20:58:29 +00:00
Joel Sherrill 3a8335b671 2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1346/cpukit
	* rtems/include/rtems/rtems/ratemon.h: Sense of rate monotonic
	statistics nanoseconds or ticks granularity conditional is backwards.
2008-12-03 19:03:40 +00:00
Joel Sherrill 9efa012d9b 2008-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/pipe/fifo.c: Actually disable initializing pipes as
	requested in confdefs.h.
2008-12-03 17:38:21 +00:00
Joel Sherrill 4c0d483b02 2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h: Add disable of pipes by default since they
	use resources which are otherwise not accounted for. Eventually the
	resources will have to be properly configured.
2008-12-01 23:28:53 +00:00
Joel Sherrill d120078564 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* libfs/Makefile.am: Add stub for devide filesystem for unix port.
	* libfs/src/devfs/devfs_unixstub.c: New file.
2008-12-01 17:37:01 +00:00
Joel Sherrill e65f596dfd 2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/support.h,
	rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
	rtems/src/workspace.c: Revert ssize_t patch.
2008-12-01 17:31:11 +00:00
Joel Sherrill c8f7b4e6ca 2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/include/rtems/score/watchdog.h: Add
	_Watchdog_Report and _Watchdog_Report_chain as debug assist routines.
	They are NOT to be used in directives.
	* score/src/watchdogreport.c, score/src/watchdogreportchain.c:
	New files.
2008-11-26 16:38:06 +00:00
Joel Sherrill b2d67fdc44 2008-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/watchdogadjust.c, score/src/watchdogtickle.c: Spacing.
2008-11-25 22:29:58 +00:00
Joel Sherrill 94a88c1c95 2008-11-24 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1341/cpukit
	* sapi/include/confdefs.h: The following macros were missing
	the _Configure_From_workspace() wrapper on their size estimate:
	  + CONFIGURE_INTERRUPT_STACK_MEMORY
	  + CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API
	  + CONFIGURE_INTERRUPT_VECTOR_TABLE
	  + CONFIGURE_MEMORY_FOR_STATIC_EXTENSIONS
	In addition, there was a duplicate definition of
	CONFIGURE_MEMORY_PER_TASK_FOR_CLASSIC_API.
2008-11-24 19:50:06 +00:00
Ralf Corsepius ea5c9c660f 2008-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CHECK_FUNC's to check functions migrating
	into newlib.
2008-11-24 16:41:02 +00:00
Joel Sherrill 8d0fdc3ca0 2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/psignal.h: Fix typo in converting method
	from macro to static inline.
2008-11-24 16:35:36 +00:00
Joel Sherrill d05ab3519a 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/psignal.h: Add stubs for
	gettimer() and setitimer().
	* posix/src/getitimer.c, posix/src/setitimer.c: New files.
2008-11-20 21:52:19 +00:00
Joel Sherrill ceadb90a71 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, posix/Makefile.am: Comment out including
	files which contain routines which are now provided by the newlib
	posix subdirectory.  Document a few which come from the unix directory.
2008-11-20 21:50:11 +00:00
Joel Sherrill db03bcc17c 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1340/cpukit
	* sapi/inline/rtems/chain.inl: Add rtems_chain_initialize to public
	chain API.
2008-11-20 21:12:59 +00:00
Joel Sherrill 7ff6115b8b 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/heap.h,
	score/include/rtems/score/protectedheap.h,
	score/include/rtems/score/wkspace.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/pheapgetblocksize.c,
	score/src/wkspace.c: Revert use of ssize_t. This type is not
	guaranteed to be able to represent a positive number greater than the
	size of a single allocatable object. We needed a type that is able to
	represent the size of a pool of multiple allocatable objects or
	potentially nearly all memory.
2008-11-20 20:01:13 +00:00
Joel Sherrill bd59b348c6 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Do not
	think about running init/fini on AVR. We do not know what mechanism
	it uses but this is not it.
2008-11-20 19:42:41 +00:00
Joel Sherrill c4c540124a 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1306/cpukit
	* posix/inline/rtems/posix/priority.inl: Eliminate hard coded numbers
	in favor of existing macros.
2008-11-20 19:19:16 +00:00
Joel Sherrill d2ccb32686 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add dummy vfork() implementation.
	* posix/src/vfork.c: New file.
2008-11-20 16:56:53 +00:00
Joel Sherrill 00151313e7 2008-11-13 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1336/cpukit
	* sapi/inline/rtems/chain.inl: Add rtems_chain_prepend_unprotected and
	rtems_chain_append_unprotected.
2008-11-13 15:10:43 +00:00