Commit Graph
5440 Commits
Author SHA1 Message Date
Joel Sherrill c8e972f57b 2002-05-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Relocate libcsupport from c/src/lib to c/src/exec/libcsupport.
	* configure.ac: Use ENV_RTEMSCPU. Reflect changed paths.
	* Makefile.am: Reflect changed paths.
	* src/Makefile.am: Reflect changed paths.
2002-05-17 18:32:22 +00:00
Joel Sherrill ae30735267 2002-05-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rootfs/.cvsignore: Remove.
	* rootfs/Makefile.am: Remove.
	* rootfs/mkrootfs.h: Remove.
	* rootfs/mkrootfs.c: Remove.
	* configure.ac: Remove rootfs and NETWORKING macros.
	* wrapup/Makefile.am: Remove rootfs and HAS_NETWORKING.
2002-05-17 18:30:03 +00:00
Joel Sherrill c1f3fc045d 2002-05-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/mkrootfs.c: Add (relocated from libmisc/rootfs).
	* rtems/mkrootfs.h: Ditto.
	* rtems/Makefile.am: Reflect changes above.
2002-05-17 18:28:26 +00:00
Joel Sherrill 7c844e30ab 2001-05-17 Joel Sherrill <joel@OARcorp.com>
* libc/envlock.c: Implemented code to let newlib's envlock share
	the libio open/close mutex.  Since both should be lightly used,
	this should not lead to problems and saves resources.
2002-05-17 18:03:34 +00:00
Joel Sherrill 1b074a19c3 2001-05-17 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/score/thread..inl: Implemented missing routines
	for new libc reentrancy support.
2002-05-17 18:01:36 +00:00
Joel Sherrill 6a3a81c830 2001-05-17 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Implemented missing routines
	to support message queue FDs.
2002-05-17 17:59:21 +00:00
Joel Sherrill a923a82d2d 2002-05-16 Chris Johns <ccj@acm.org>
* Per PR194, added the Capture engine.
	* capture/Makefile.am, capture/README, capture/capture-cli.c,
	capture/capture-cli.h, capture/capture.c, capture/capture.h,
	capture/.cvsignore: New files.
	* Makefile.am, configure.ac, wrapup/Makefile.am: Modified to
	reflect addition.
2002-05-15 16:36:10 +00:00
Joel Sherrill c0d4abe6b0 2002-05-15 Chris Johns <ccj@acm.org>
* libc/newlibc.c: Per PR141, move the C library re-enterrant
	support directly into the thread dispatch code. RTEMS needs
	libc and so requiring libc to use a user extension with its
	overhead is not the best solution. This patch lowers the
	overhead to 2 pointer moves.
2002-05-15 16:29:05 +00:00
Joel Sherrill 0df8293e2b 2002-05-15 Chris Johns <ccj@acm.org>
* include/rtems/score/thread.h, inline/rtems/score/thread.inl,
	src/threaddispatch.c, src/threadinitialize.c:
	Move the C library re-enterrant support directly into
	the thread dispatch code. RTEMS needs libc and so requiring
	libc to use a user extension with its overhead is not the best
	solution. This patch lowers the overhead to 2 pointer moves.
2002-05-15 15:14:58 +00:00
Joel Sherrill c16dcbc8fd 2002-05-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add preinstall-stamp.
2002-05-15 15:07:41 +00:00
Joel Sherrill b3afc0f89d 2001-05-14 Joel Sherrill <joel@OARcorp.com>
* dummy/Makefile.am, wrapup/Makefile.am: Fixed to generate
	a library of the same name.
2002-05-14 22:09:29 +00:00
Joel Sherrill f85a3c56ed 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Remove.
	* include/sys/utsname.h: Added, removed times (now in newlib).
	* Makefile.am: Merge include/Makefile.am
	* libc/utsname.c: Relocated from posix/src.
	* libc/Makefile.am: Reflect changes above.
	* configure.ac: Remove include/Makefile
2002-05-14 20:52:51 +00:00
Joel Sherrill baf7133855 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* Per PR212, added envlock support for newlib.  This is used
	by at least getenv()/putenv() to avoid race conditions.
	* libc/envlock.c: New file.
	* libc/Makefile.am: Modified to reflect above.
2002-05-14 19:02:06 +00:00
Joel Sherrill deb66d121b 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Remove.
	* include/sys/utsname.h: Added, removed times (now in newlib).
	* Makefile.am: Merge include/Makefile.am

	* libc/utsname.c: Relocated from posix/src.
	* libc/Makefile.am: Reflect changes above.

	* configure.ac: Remove include/Makefile
2002-05-14 18:46:05 +00:00
Joel Sherrill dc7fb59bb7 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/utsname.h: Remove.
	* include/Makefile.am: Reflect changes above.
	* src/utsname.c: Remove.
	* src/Makefile.am: Reflect changes above.
2002-05-14 18:45:34 +00:00
Joel Sherrill 0fe89f6a5f 2002-05-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/ppc.h: Remove PPC_DEBUG_MODEL.
2002-05-14 18:31:37 +00:00
Joel Sherrill bd9265df54 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Work-around to autoconf-2.53 adding PACKAGE_*
	to autoheaders - sed out *PACKAGE* from cpuopts-tmp.h.
2002-05-14 18:11:36 +00:00
Joel Sherrill b7be6533db 2002-05-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/ioctl.h: Relocated from libnetworking/sys.
	* include/sys/filio.h: Relocated from libnetworking/sys.
	* include/sys/sockio.h: Relocated from libnetworking/sys.
	* include/Makefile.am: Reflect changes above.
	* configure.ac: Take out *NETWORKING*.
2002-05-14 18:03:57 +00:00
Joel Sherrill c7286d942e 2002-05-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* sys/ioctl.h: Remove.
	* sys/sockio.h: Remove.
	* sys/filio.h: Remove.
	* sys/Makefile.am: Reflect changes above.
2002-05-14 18:02:47 +00:00
Joel Sherrill 19131e9744 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* rtems/new-exceptions/cpu.h: Per PR211 fix
	saving/restoring floating point context.  The fpsave and fprestore
	routines are only used in a executing context which _is_ fp and hence
	has the FPU enabled. The current behavior required the FPU always to
	be on which is very dangerous if lazy context switching is used.
	[Joel Note: Some ports explicitly enabled the FPU in the FP save and
	restore routines to avoid this.]

	The patch also makes sure (on powerpc only) that the FPU is disabled
	for integer tasks. Note that this is crucial if deferred fp context
	switching is used. Otherwise, fp context corruption may go undetected!
	Also note that even tasks which merely push/pop FP registers to/from
	the stack without modifying them still MUST be FP tasks - otherwise
	(if lazy FP context switching is used), FP register corruption (of
	other, FP, tasks may occur)!

	Furthermore, (on PPC) by default, lazy FP context save/restore
	is _disabled_.
2002-05-14 17:45:37 +00:00
Joel Sherrill 48f8968356 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* src/threaddispatch.c, src/threadhandler.c: Per PR211 fix
	saving/restoring floating point context.  The fpsave and fprestore
	routines are only used in a executing context which _is_ fp and hence
	has the FPU enabled. The current behavior required the FPU always to
	be on which is very dangerous if lazy context switching is used.
	[Joel Note: Some ports explicitly enabled the FPU in the FP save and
	restore routines to avoid this.]

	The patch also makes sure (on powerpc only) that the FPU is disabled
	for integer tasks. Note that this is crucial if deferred fp context
	switching is used. Otherwise, fp context corruption may go undetected!
	Also note that even tasks which merely push/pop FP registers to/from
	the stack without modifying them still MUST be FP tasks - otherwise
	(if lazy FP context switching is used), FP register corruption (of
	other, FP, tasks may occur)!

	Furthermore, (on PPC) by default, lazy FP context save/restore
	is _disabled_.
2002-05-14 17:45:36 +00:00
Joel Sherrill 06549dcf3f 2001-05-14 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: Corrected -- entry should have been in libchip.
2002-05-14 17:35:55 +00:00
Joel Sherrill 1065f16b76 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* bootloader/Makefile.am, console/Makefile.am, pci/Makefile.am:
	Per PR215 address the following issues:
	    - _IO_BASE, _ISA_MEM_BASE and PCI_DRAM_OFFSET
	      are no longer defined by libcpu (powerpc/shared/include/io.h)
	      but by the BSP (who is the only one to know the values)
	    - the affected BSP (shared/motorola) headers have been fixed
	      in a separate "libbsp/powerpc/shared" patch.
	    - the DEC 21140 driver (libchip/network/dec21140.c) has been
	      fixed to use PCI_DRAM_OFFSET instead of PREP_PCI_DRAM_OFFSET.
	      and PCI_MEM_BASE instead of PREP_ISA_MEM_BASE. PCI_MEM_BASE
	      is to be defined by the BSP who is using this driver.
	    - the DEC driver also has been fixed to use the newer
	      rtems_bsp_delay_in_bus_cycles() instead of the obsolete
	      delay_in_bus_cycles().
2002-05-14 17:35:16 +00:00
Joel Sherrill 3ce2907d59 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* network/dec21140.c: Per PR215 address the following issues:
	    - _IO_BASE, _ISA_MEM_BASE and PCI_DRAM_OFFSET
	      are no longer defined by libcpu (powerpc/shared/include/io.h)
	      but by the BSP (who is the only one to know the values)
	    - the affected BSP (shared/motorola) headers have been fixed
	      in a separate "libbsp/powerpc/shared" patch.
	    - the DEC 21140 driver (libchip/network/dec21140.c) has been
	      fixed to use PCI_DRAM_OFFSET instead of PREP_PCI_DRAM_OFFSET.
	      and PCI_MEM_BASE instead of PREP_ISA_MEM_BASE. PCI_MEM_BASE
	      is to be defined by the BSP who is using this driver.
	    - the DEC driver also has been fixed to use the newer
	      rtems_bsp_delay_in_bus_cycles() instead of the obsolete
	      delay_in_bus_cycles().
2002-05-14 17:08:25 +00:00
Joel Sherrill 78f8c91747 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/registers.h, rtems/score/ppc.h: Per PR213, add
	support for the MPC74000 (AKA G4); there is no AltiVec support yet,
	however.
2002-05-14 16:53:01 +00:00
Joel Sherrill a2a8c5b417 2001-05-09 Joel Sherrill <joel@OARcorp.com>
* src/exinit.c: Slightly rework initialization so there
	is a valid thread as _Thread_Executing when the pre_tasking
	hook is called.  This allows one directives and malloc
	to potentially use mutex protection.
2002-05-09 21:41:05 +00:00
Joel Sherrill 51b39864ae 2002-05-01 Eric Norum <eric.norum@usask.ca>
* machine/in_cksum.h: Per PR200 fix multi-line inline assembly
	to satisfy gcc 3.1 and newer.
2002-05-01 23:09:37 +00:00
Joel Sherrill 5a715de409 2002-04-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/ppc.h: Remove rtems_multilib.
	Add mpc555 (Based on comments from Sergei Organov <osv@javad.ru>).
	* rtems/old-exceptions/cpu.h: Remove _CPU_Data_Cache_Block_Flush.
	Remove _CPU_Data_Cache_Block_Invalidate.
2002-05-01 22:35:52 +00:00
Joel Sherrill 80fe968c12 2002-03-20 Chris Johns <ccj@acm.org>
* monitor/mon-command.c: Per PR192 the RTEMS monitor makes everything
	lowercase. The capture engine need to set triggers or watches on task
	with uppercase names.
	Also stop the monitor repeating command when enter is pressed.
2002-05-01 22:33:52 +00:00
Joel Sherrill bf99393f73 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* src/objectcomparenamestring.c: Fix typos.
2002-04-27 00:20:40 +00:00
Joel Sherrill 2b454faf13 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/object.h, inline/rtems/score/object.inl,
	src/objectcomparenamestring.c: Address PR81 that
	reworked POSIX message queues to add a descriptor separate from
	the underlying message queue.  This allows non-blocking to follow
	the "open" not the underlying queue.   As part of debugging this
	it became clear that _Objects_Compare_name_string was broken
	and a simple version using strncmp() was substituted.
2002-04-26 23:56:56 +00:00
Joel Sherrill 53092d1921 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/mqueue.h, inline/rtems/posix/mqueue.inl,
	src/mqueue.c, src/mqueueclose.c, src/mqueuecreatesupp.c,
	src/mqueuegetattr.c, src/mqueuenotify.c, src/mqueueopen.c,
	src/mqueuerecvsupp.c, src/mqueuesendsupp.c, src/mqueuesetattr.c:
	Per PR81 reworked to add a message queue descriptor separate from
	the underlying message queue.  This allows non-blocking to follow
	the "open" not the underlying queue.
2002-04-26 23:39:01 +00:00
Joel Sherrill 616b9f56ca 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* libc/gxx_wrappers.c: Fix to keep prototype same as in gcc and
	remove warning.
2002-04-26 23:24:45 +00:00
Joel Sherrill d50c0d2534 2002-04-26 Eric Norum <eric.norum@usask.ca>
* netinet/in_cksum_i386.c: Add volatile so the more agressive
	optimization in gcc 3.1 does not reorder things.
2002-04-26 21:34:58 +00:00
Joel Sherrill 6236b47067 2001-04-22 Joel Sherrill <joel@OARcorp.com>
* src/task.c (_ITRON_Task_User_extensions): Add new fields to
	be correct in respect to newly added fields for separate switch list.
2002-04-22 12:17:03 +00:00
Joel Sherrill 2c03029651 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* asm.h: Use cpuopts.h instead of targopts.h.
2002-04-19 13:25:19 +00:00
Joel Sherrill 56ec190539 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/hppa.h: Remove rtems/score/targopts.h.
2002-04-19 13:25:06 +00:00
Joel Sherrill a81a8f8dc1 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* pppd/utils.c: Adapt to gcc-3.x.
2002-04-18 22:24:04 +00:00
Joel Sherrill 4a0d87ee09 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* asm.h: Include cpuopts.h instead of targopts.h.
	* rtems/new-exceptions/cpu.h: Relocated from
	libbsp/powerpc/support/new_exception_processing/rtems/score/cpu.h
	* rtems/old-exceptions/cpu.h: Relocated from
	c/src/lib/libbsp/powerpc/support/old_exception_processing/rtems/score/cpu.h
	* rtems/powerpc/registers.h: Relocated and renamed from
	libcpu/powerpc/shared/include/cpu.h.
	* rtems/score/cpu.h: New.
	* Makefile.am: Reflect changes above.
2002-04-18 20:54:19 +00:00
Joel Sherrill e80ac7f6c2 2002-04-18 Jay Monkman <jtm@smoothsmoothie.com>
* rtems/score/cpu.h (CPU_ISR_Disable and CPU_ISR_Enable): Correct them
	where they correctly inform the compiler about the register they
	are modifying.
2002-04-18 13:18:11 +00:00
Joel Sherrill 9779f3dbb7 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Remove targopts.h.
2002-04-18 13:07:50 +00:00
Joel Sherrill 1216c9cebf 2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/scandir.c: Initialize nitems = 0.
2002-04-17 14:01:34 +00:00
Joel Sherrill cf80584ec6 2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Add the sparc to the target supporting
	multlibs.
2002-04-17 14:01:19 +00:00
Joel Sherrill cb9b2bfcaa 2002-04-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove ENABLE_GCC28.
2002-04-16 13:53:23 +00:00
Joel Sherrill f918e74b5b 2002-04-16 Chris Johns <ccj@acm.org>
* src/threadinitialize.c: Per PR181, clear the array of user extension
	pointers. This lets user extensions that have hooked the switch handler
	know if a task has been processed by the user extension before. If a
	user extension is created after a task is started it may not know it.
2002-04-16 13:42:31 +00:00
Joel Sherrill 485e80fa03 2002-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Add stdint.h and inttypes.h.
	  (reported by Mike Siers <mikes@poliac.com>)
	* include/stdint.h: New file.
	* include/inttypes.h: New file.
2002-04-16 13:23:40 +00:00
Joel Sherrill 5bfc8912be 2002-04-11 Chris Johns <ccj@acm.org>
* c/src/libnetworking/rtems/rtems_bsdnet.h: To address PR59, added
	the drv_ctrl driver control block field to the ifconfig network driver
	structure. This field is needed by the i82586 driver which was ported
	from NetBSD as it had better hardware abstraction.
2002-04-13 16:41:43 +00:00
Joel Sherrill 231fccb299 2002-04-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Add i386 to multilib-able targets.
2002-04-12 15:11:16 +00:00
Joel Sherrill a324355fb8 2002-03-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/idtr.h: New file, extracted from libcpu/cpu.h.
  	* rtems/score/interrupts.h: New file, extracted from libcpu/cpu.h.
	* rtems/score/registers.h: New file, moved from libcpu.
	* Makefile.am: Reflect changes above.
	* cpu.c: Don't include cpuModel.h,
	  #include <rtems.h>,
	  #include <rtems/score/i386types.h>,
	  #include <rtems/score/idtr.h>.
	* rtems/score/cpu.h: Don't include libcpu/cpu.h.
	  #include <rtems/score/interrupts.h>,
	  #include <rtems/score/registers.h>.
2002-04-12 15:08:13 +00:00
Joel Sherrill ed11413b48 2001-04-11 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/score/userext.inl: Now works after merging patch for
	functionality requested in PR174.
	* inline/rtems/score/userext.inl: Added a comment explaining the
	order in which routines appear since it is not the obvious order.
2002-04-11 13:51:06 +00:00