summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Thomas Doerfler2008-07-241-7/+0
|
* Extension of the RTEMS Interrupt ManagerThomas Doerfler2008-07-101-0/+9
| | | | (shared handler and handler with a handle).
* 2008-07-03 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-031-365/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cpukit/libcsupport/include/chain.h: Removed. Use the SAPI interface that is supported. * cpukit/libcsupport/Makefile.am, cpukit/libcsupport/preinstall.am: Remove chain.h header references. * cpukit/sapi/include/rtems/chain.h, cpukit/sapi/inline/rtems/chain.inl: New. A supported chains interface. * cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to include the new chains interface. * cpukit/libfs/src/imfs/imfs.h, cpukit/libfs/src/imfs/imfs_creat.c, cpukit/libfs/src/imfs/imfs_debug.c, cpukit/libfs/src/imfs/imfs_directory.c, cpukit/libfs/src/imfs/imfs_fsunmount.c, cpukit/libfs/src/imfs/imfs_getchild.c, cpukit/libfs/src/imfs/imfs_load_tar.c, cpukit/libfs/src/imfs/imfs_rmnod.c, cpukit/libfs/src/imfs/memfile.c, cpukit/libfs/src/nfsclient/src/nfs.c, cpukit/libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/malloc_deferred.c, cpukit/libcsupport/src/mount.c, cpukit/libcsupport/src/privateenv.c, cpukit/libcsupport/src/unmount.c: Change to the new chains interface. * cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
* 2008-07-03 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-038-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cpukit/libcsupport/include/chain.h: Removed. Use the SAPI interface that is supported. * cpukit/libcsupport/Makefile.am, cpukit/libcsupport/preinstall.am: Remove chain.h header references. * cpukit/sapi/include/rtems/chain.h, cpukit/sapi/inline/rtems/chain.inl: New. A supported chains interface. * cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to include the new chains interface. * cpukit/libfs/src/imfs/imfs.h, cpukit/libfs/src/imfs/imfs_creat.c, cpukit/libfs/src/imfs/imfs_debug.c, cpukit/libfs/src/imfs/imfs_directory.c, cpukit/libfs/src/imfs/imfs_fsunmount.c, cpukit/libfs/src/imfs/imfs_getchild.c, cpukit/libfs/src/imfs/imfs_load_tar.c, cpukit/libfs/src/imfs/imfs_rmnod.c, cpukit/libfs/src/imfs/memfile.c, cpukit/libfs/src/nfsclient/src/nfs.c, cpukit/libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/malloc_deferred.c, cpukit/libcsupport/src/mount.c, cpukit/libcsupport/src/privateenv.c, cpukit/libcsupport/src/unmount.c: Change to the new chains interface. * cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-061-1/+1
| | | | | | | | | | | | | * libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-task.c, rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h, score/src/threaddispatch.c, score/src/threadinitialize.c, score/src/threadtickletimeslice.c: Add typedefs for cpu usage and period timing statistics. Also renamed related variables and structure members so they are the same whether you are using nanosecond (e.g. struct timespec) or ticks (e.g. uint32_t) granularity. This lays the groundwork for future cleanup.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-051-2/+8
| | | | | * libcsupport/src/newlibc_exit.c: Only run the fini section on exit if the target toolset uses init/fini sections.
* 2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-271-10/+9
| | | | | | * libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Call fini() as part of exit(). This avoids atexit() being a required function.
* Added const qualifier to various pointers and data tables toThomas Doerfler2008-05-275-31/+31
| | | | | | reduce size of data area. IMFS: Fixed creation of symbolic links to avoid a compiler warning. DOSFS: Use LibBlock instead of read() to read the boot record.
* Bugfix: String output without width option.Thomas Doerfler2008-05-271-0/+5
|
* New define: CONSOLE_DEVICE_NAME.Thomas Doerfler2008-05-271-0/+2
|
* 2008-05-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-224-0/+164
| | | | | | | * libcsupport/src/termios_baud2index.c, libcsupport/src/termios_baud2num.c, libcsupport/src/termios_num2baud.c, libcsupport/src/termios_setinitialbaud.c: New files.
* 2008-05-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-223-104/+125
| | | | | | | | * libcsupport/Makefile.am, libcsupport/preinstall.am, libcsupport/include/rtems/termiostypes.h: Move termios helper routines from libchip to libcsupport. Add routine which makes it easy for a termios device driver to inform termios of its default baud rate. This avoids inconsistencies in later termios settings changes.
* 2008-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-221-4/+17
| | | | * libcsupport/include/rtems/watchdogdrv.h: Finish writing comments.
* 2008-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-222-0/+64
| | | | | | * libcsupport/preinstall.am, sapi/include/confdefs.h: Add baseline interface for Watchdog Driver. * libcsupport/include/rtems/watchdogdrv.h: New file.
* Fix Id.Joel Sherrill2008-05-161-1/+1
|
* Add locks around non-atomic structure assignment.Eric Norum2008-05-131-0/+2
|
* 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-04-223-44/+2
| | | | | | * libcsupport/Makefile.am, libcsupport/include/rtems/libio.h: Remove rtems_termios_reserve_resources. It is obsolete. * libcsupport/src/termiosreserveresources.c: Removed.
* 2008-04-12 Chris Johns <chrisj@rtems.org>Chris Johns2008-04-112-2/+47
| | | | | | | | | | | | * libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_script.c: Add support to echo the commands to stdout. This is useful with the -v script option to show commands as the run. Also added support to chdir to the directory the task invoking the script is in. * libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c: Update tro the latest FreeBSD version. * libcsupport/Makefile.am, libcsupport/src/fchown.c: Add fchown support.
* 2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-051-0/+9
| | | | | * libcsupport/src/gxx_wrappers.c: Add rtems_gxx_mutex_destroy as needed by gcc newer than the 4.3 release series.
* 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-02-281-4/+5
| | | | * libcsupport/src/chroot.c: Formatting.
* Revert Joel's 2008-01-31 screw up.Ralf Corsepius2008-02-181-1/+15
|
* 2008-02-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-02-151-34/+34
| | | | | * libcsupport/include/motorola/mc68230.h: Prefix defines with MC68230_ to avoid preprocessor clashes.
* 2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-02-061-4/+29
| | | | | | * libcsupport/src/printk.c: Added width and padding for %s. * libmisc/cpuuse/cpuusagereport.c: Support object names that are strings longer than 4 chanracters.
* 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-311-15/+1
| | | | | * libcsupport/preinstall.am, posix/preinstall.am: Revert temporary changes which aid in coverage testing.
* 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-311-2/+0
| | | | * libcsupport/src/posix_memalign.c: Remove warning.
* 2008-01-29 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-296-75/+130
| | | | | | | | | | | * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/malloc_walk.c, libcsupport/src/posix_memalign.c, libcsupport/src/realloc.c, score/src/heapwalk.c: Add rtems_memalign as helper and as exposed nmemalign variant with few restrictions. Also turn on compilation of _Heap_Walk but make forced calls to it conditionally compiled. This should allow more flexibility to the user as to run-time checking of the heap. * libcsupport/src/rtems_memalign.c: New file.
* 2008-01-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-251-6/+6
| | | | | * libcsupport/include/rtems/assoc.h: rtems_assoc_ptr_by_local should be in public API.
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-093-2/+19
| | | | | | * libcsupport/Makefile.am: Add src/malloc_dirtier.c. * libcsupport/include/rtems/malloc.h: Add malloc dirty support. * libcsupport/src/malloc_p.h: Correct prototype.
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-098-20/+48
| | | | | | | | | | | | * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_deferred.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_sbrk_helpers.c, libcsupport/src/posix_memalign.c: Place all deferred free code and place it in subroutines. Add plugin for dirtying allocated memory to assist in debugging. Clean up comments and spacing as needed. * libcsupport/src/malloc_dirtier.c: New file.
* 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-091-16/+13
| | | | | * libcsupport/src/__assert.c: Clean up and make __assert() call __assert_func().
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-091-4/+31
| | | | | * libcsupport/src/__assert.c: Newlib 1.16.0 adds __assert_func(). We need to have it also.
* 2008-01-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-087-71/+138
| | | | | | | | | | | | | | | * libcsupport/Makefile.am: Add malloc_sbrk_helpers.c. * libcsupport/include/rtems/malloc.h, libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_statistics_helpers.c: Make sbrk() support pluggable and optional. This eliminates the need for heap extend and sbrk in the minimum footprint which is ~2.5K on the SPARC. * sapi/include/confdefs.h: Add the following configuration points: + CONFIGURE_MALLOC_STATISTICS + CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK * libcsupport/src/malloc_sbrk_helpers.c: New file.
* 2007-12-28 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-282-1/+41
| | | | | | * libcsupport/Makefile.am: _rename_r is required by newlib 1.16.0. Hopefully this implementation is OK. * libcsupport/src/_rename_r.c: New file.
* 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-211-8/+5
| | | | | | PR 1268/cpukit * libcsupport/include/rtems/assoc.h: There is no rtems_assoc_ptr_by_value method.
* Make gettimeofday() POSIX-compliant.Ralf Corsepius2007-12-211-1/+2
|
* Make sync() POSIX-compliant.Ralf Corsepius2007-12-211-3/+1
|
* 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-198-24/+186
| | | | | | | | | | | * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_report_statistics_plugin.c, libmisc/shell/shell.c, libmisc/shell/shell.h, score/src/objectinitializeinformation.c: Add posix_memalign. Split out management of deferred frees to subroutines. * libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.
* 2007-12-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-1820-511/+1086
| | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/Makefile.am, libcsupport/preinstall.am, libcsupport/src/malloc.c, libcsupport/src/mallocinfo.c, libmisc/Makefile.am, libmisc/shell/main_mallocinfo.c, libmisc/shell/shellconfig.h: Split malloc.c into multiple files with one function per file. Also split out statistics into a separate file which can be plugged in dynamically. Right now, it is always in. I suspect that splitting the file removed more code than leaving statistics in. I tinkered with malloc information command in the shell. I resurrected the malloc arena code as malloc boundary. This code is now compiled all the time even though it does not appear to work. * libcsupport/include/rtems/malloc.h, libcsupport/src/_calloc_r.c, libcsupport/src/_free_r.c, libcsupport/src/_malloc_r.c, libcsupport/src/_realloc_r.c, libcsupport/src/calloc.c, libcsupport/src/free.c, libcsupport/src/malloc_boundary.c, libcsupport/src/malloc_get_statistics.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_report_statistics.c, libcsupport/src/malloc_report_statistics_plugin.c, libcsupport/src/malloc_statistics_helpers.c, libcsupport/src/malloc_walk.c, libcsupport/src/realloc.c, libmisc/shell/main_perioduse.c: New files.
* 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-173-4/+45
| | | | | | * libcsupport/Makefile.am, libcsupport/src/mallocfreespace.c: Add malloc_info() routine. * libcsupport/src/mallocinfo.c: New file.
* 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-171-44/+48
| | | | * libcsupport/src/printk.c: Style.
* 2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-131-15/+1
| | | | | | * libcsupport/preinstall.am, posix/preinstall.am, rtems/Makefile.am, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Revert testing patch.
* 2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-131-1/+15
| | | | | | | | | | | * libcsupport/preinstall.am, posix/preinstall.am, posix/src/aio.c, posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c, posix/src/clockgettime.c, posix/src/clocksetenableattr.c, posix/src/clocksettime.c, posix/src/devctl.c, posix/src/pthreadcreate.c, posix/src/pthreadgetcpuclockid.c, posix/src/types.c, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Eliminate POSIX_NOT_IMPLEMENTED(). Return ENOSYS instead.
* 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * libcsupport/src/malloc.c, libmisc/monitor/mon-command.c, posix/preinstall.am, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/semaphore.h, posix/src/conddestroy.c, posix/src/mutexdestroy.c, posix/src/mutexinit.c, posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, sapi/include/rtems/init.h, sapi/include/rtems/sptables.h, sapi/src/exinit.c, score/include/rtems/system.h, score/include/rtems/score/mpci.h, score/src/mpci.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadstackallocate.c, score/src/threadstackfree.c, score/src/wkspace.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred.
* 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-11-261-1/+1
| | | | * libcsupport/src/printk.c, score/src/objectget.c: Fix spacing.
* 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-11-261-3/+5
| | | | * libcsupport/src/malloc.c: Do not assert on free of bad pointer.
* 2007-10-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-10-191-1/+2
| | | | | | * libcsupport/src/assoc.c: Removed. Accidentally included routine also in another file. Mistake after splitting. * libcsupport/Makefile.am: Reflect file removal.
* 2007-10-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-10-191-35/+0
| | | | | * libcsupport/src/assoc.c: Removed. Accidentally included routine also in another file. Mistake after splitting.
* 2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-09-251-4/+4
| | | | * libcsupport/src/gxx_wrappers.c: Revert.
* 2007-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-09-251-4/+4
| | | | | * libcsupport/src/gxx_wrappers.c, libmisc/monitor/mon-mpci.c: Use PRId32 to fix warning.
* 2007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-09-243-0/+250
| | | | | | | | | | 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.