Commit Graph
5440 Commits
Author SHA1 Message Date
Ralf Corsepius f4cc6c550f Add AC_CHECK_FUNC's to check functions migrating into newlib. 2008-11-24 16:37:05 +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
Joel Sherrill f06e5a86b1 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add getrusage().
	* libcsupport/src/getrusage.c: New file.
2008-11-12 15:36:49 +00:00
Joel Sherrill f10fe61bf0 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/timespecaddto.c: Fix typo.
2008-11-12 15:11:51 +00:00
Joel Sherrill 2e500def76 2008-11-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/ttyname.c: Change third parameter of ttyname to be
	size_t instead of int.
2008-11-07 16:56:40 +00:00
Joel Sherrill a2ddf1ca8b 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* librpc/src/xdr/xdr_float.c: Add M32C, M32R, and Blackfin.
2008-11-05 21:51:45 +00:00
Joel Sherrill d10477877d 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadhandler.c: M32R uses different name for init.
2008-11-05 21:50:11 +00:00
Joel Sherrill c41f9d6f23 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add _execve() so we can use newlib posix support
	directory and eliminate code in RTEMS.
	* posix/src/_execve.c: New file.
2008-11-05 21:48:48 +00:00
Joel Sherrill bc5d8704c9 2008-11-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1333/cpukit
	* libcsupport/include/rtems/termiostypes.h: Typo on type name -- should
	be rtems_device_minor_number.
2008-11-03 15:35:12 +00:00
Joel Sherrill 55b115ec90 2008-10-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* context_init.c, context_switch.S, cpu.c, cpu_asm.c: Correct file
	headers.
2008-10-28 21:44:58 +00:00
Joel Sherrill 0e5b446af7 2008-10-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, preinstall.am, rtems/score/cpu.h: Now performs context
	switches and many tests run.
	* context_init.c, context_switch.S, cpu.c, cpu_asm.c: New files.
2008-10-28 20:03:19 +00:00
Joel Sherrill 1fae7b43d7 2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1331/networking
	* libmisc/shell/shell.c, telnetd/check_passwd.c, telnetd/telnetd.c,
	telnetd/telnetd.h: Improve comments and explanation of options to
	rtems_telnetd_initialize. Add extra newline to login sequence from
	shell.
2008-10-15 17:37:16 +00:00
Joel Sherrill f1cf019629 2008-10-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: Enable same code paths for SX. Tested on simulator.
2008-10-14 21:28:20 +00:00
Joel Sherrill f3893072e4 2008-10-14 Steven Grunza <grunza@ulticom.com>
* cpu_asm.S: Use proper diredctive for h8300/sx.
2008-10-14 18:30:55 +00:00
Joel Sherrill 05dbc0e0e3 Add PR. 2008-10-14 16:09:25 +00:00
Joel Sherrill 8e37731cd0 2008-10-14 Tim Cussins <timcussins@eml.cc>
* libcsupport/src/free.c: Should print begin field not start field.
2008-10-14 16:08:58 +00:00
Joel Sherrill e2324c081a 2008-10-14 Wei Shen <cquark@gmail.com>
* Makefile.am, preinstall.am, libcsupport/src/mknod.c,
	libcsupport/src/open.c, libcsupport/src/pipe.c, libfs/Makefile.am,
	libfs/preinstall.am, libfs/src/imfs/imfs.h,
	libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c,
	libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_initsupp.c,
	libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_stat.c,
	libfs/src/imfs/memfile.c: Initial commit of POSIX pipe support.
	* libfs/src/imfs/imfs_fifo.c, libfs/src/pipe/fifo.c,
	libfs/src/pipe/pipe.c, libfs/src/pipe/pipe.h: New files.
2008-10-14 15:06:25 +00:00
Joel Sherrill c1fe2a115a Fix formatting. 2008-10-14 14:49:00 +00:00
Joel Sherrill f517be08f1 2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* context_switch.S, cpu_asm.c, rtems/score/cpu.h: Add support for
	restarting the currently executing thread. Fine tune alignment factor
	as two-byte aligned and use this for critical structures.
2008-10-13 17:07:57 +00:00
Thomas Doerfler 06c3530efc libnetworking/rtems/rtems_glue.c: Copy nothing if rtems_bsdnet_parse_driver_name() if namep is NULL.
include/rtems/status-checks.h: Added prefix "RTEMS" for all macros. Doxygen style comments.  Cleanup.
2008-10-10 15:56:32 +00:00
Joel Sherrill db41bb6784 2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/printk.c: Addresses can be larger than integers
	so use long for %p formats.
	* score/inline/rtems/score/address.inl: Offsets can be positive or
	negative, so use int32_t.  Also do math with intptr_t since there
	are cases where the number of bits in an address do not equal the
	number of bits in an integer.
	* score/inline/rtems/score/heap.inl: Offsets can be positive or
	negative, so use int32_t.
2008-10-03 22:27:01 +00:00
Joel Sherrill 5365e6066f 2008-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Add m32r.
	* libcsupport/src/newlibc_exit.c: For some odd reason, the fini
	symbol for the m32r in C needs an extra leading _.
2008-10-03 19:42:30 +00:00
Joel Sherrill 7059d8fc62 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/cpu/Makefile.am: Add new M32R port. It is just a beginning but
	the BSP is functional enough to initialize and shutdown RTEMS.
2008-10-02 21:56:06 +00:00
Joel Sherrill 463454b084 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, ChangeLog, Makefile.am, preinstall.am, rtems/asm.h,
	rtems/score/cpu.h, rtems/score/cpu_asm.h, rtems/score/m32r.h,
	rtems/score/types.h: New files.
2008-10-02 21:55:54 +00:00
Joel Sherrill 640e9128fa 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Revert trash committed. Shell builds with m32c now.
2008-10-02 21:47:29 +00:00
Joel Sherrill 0c34b17650 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, score/cpu/Makefile.am: Initial addition of M32C port.
	This is still a work in process but most tests do run on simulator.
2008-10-02 21:33:09 +00:00
Joel Sherrill ed6e947180 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, ChangeLog, Makefile.am, context_init.c, context_switch.S,
	cpu.c, cpu_asm.c, preinstall.am, varvects.S, varvects.h, rtems/asm.h,
	rtems/score/cpu.h, rtems/score/cpu_asm.h, rtems/score/m32c.h,
	rtems/score/types.h: New files.
2008-10-02 21:32:44 +00:00
Joel Sherrill 9a79f1b42c 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/utils-cp.c: Do not put a 64K buffer on the stack.
2008-10-02 21:31:54 +00:00
Joel Sherrill 12a0a52518 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/priority.inl: Use simple integer as loop
	counter.
2008-10-02 21:03:44 +00:00
Joel Sherrill 2cc1b43b57 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c, rtems/include/rtems/rtems/types.h: Do
	not have fp context type when no hardware or software floating point
	is available.
2008-10-02 21:00:37 +00:00
Joel Sherrill 4c09f4b3fe 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_statistics_helpers.c,
	libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/support.h,
	rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
	rtems/src/workspace.c, sapi/include/confdefs.h,
	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: Change size_t to ssize_t on all Heap, Workspace
	and Region calls. On 16-bit architectures, size_t can be 16-bits
	which would limit sizes to 64K.
2008-10-02 20:56:55 +00:00
Joel Sherrill 3d0e458723 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.c, rtems/score/cpu.h, rtems/score/types.h: Corrections and
	updates.
2008-10-02 20:20:17 +00:00
Joel Sherrill b079fe33e4 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_cp.c, libmisc/shell/main_ls.c,
	libmisc/shell/main_mv.c, libmisc/shell/main_netstats.c,
	libmisc/shell/main_rm.c, libmisc/shell/shell_script.c: Newlib >
	1.16.0 requires __need_getopt_newlib to be defined to get visibility
	on the reentrancy extensions.
2008-10-02 20:16:16 +00:00
Joel Sherrill caf0e53e8f 2008-10-01 Gene Smith <gene.smith@siemens.com>
PR 1328/cpukit
	* libmisc/shell/main_mdump.c, libmisc/shell/main_mwdump.c: Fix printing
	of more than 256 bytes.
2008-10-01 20:02:34 +00:00
Joel Sherrill 8baeb42d2d 2008-09-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Fine tune conditional so _CPU_ISR_install_vector is in CPU Kit
	now.
2008-09-30 16:23:34 +00:00
Thomas Doerfler 1196226358 Added definitions for asynchronous read and write IO commands. 2008-09-30 10:00:50 +00:00
Joel Sherrill 7cb4694311 2008-09-26 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1316/cpukit
	* score/src/coremsgbroadcast.c: Give error when message is too large
	like when sending a message. This was the documented behavior.
2008-09-26 19:24:27 +00:00
Eric Norum ac337bc053 Final resolution of this "small" por t number change. 2008-09-26 15:03:29 +00:00
Joel Sherrill ddf4529e03 2008-09-25 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Revert previous patch.
2008-09-25 19:54:42 +00:00
Joel Sherrill 0655f79d8e 2008-09-25 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Revert previous patch.
2008-09-25 19:54:26 +00:00
Joel Sherrill d66a6cbf66 2008-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Move duplicated context switch code to score/cpu. This
	has been used to run tests on the simulator BSP as SH1, SH2, and SH4.
	* context.c: New file.
2008-09-25 19:32:41 +00:00
Joel Sherrill f40ddad254 2008-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/deviceio.c: Eliminate duplicate implementation.
2008-09-25 14:17:53 +00:00