summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-098-100/+208
| | | | | | | | | | | * posix/Makefile.am, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/mutex.h, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mutex.inl: Do not include POSIX Mutex or Condition Variable object get helpers because they are more complicated than the norm. They can implicitly perform a create. They cross the line as being too complex and large to inline since they negatively impact size and binary test coverage. * posix/src/condget.c, posix/src/mutexget.c: New files.
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-094-2/+25
| | | | | | * 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-093-4/+22
| | | | | | * score/include/rtems/score/coremutex.h, score/src/coremutexseizeintr.c: Fix conditional code for inlining _CORE_mutex_Seize_interrupt_trylock() and add comments.
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-092-0/+13
| | | | * sapi/include/confdefs.h: Add CONFIGURE_MALLOC_DIRTY.
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-099-20/+60
| | | | | | | | | | | | * 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-092-14/+15
| | | | | * score/src/objectgetnoprotection.c: Eliminate duplicate exit path code when there is an error.
* 2008-01-09 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2008-01-094-7/+25
| | | | | | * posix/src/keycreate.c, rtems/src/eventseize.c, score/include/rtems/score/interr.h: Rearranged source to allow more test coverage.
* 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-092-16/+18
| | | | | * libcsupport/src/__assert.c: Clean up and make __assert() call __assert_func().
* 2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-092-4/+36
| | | | | * 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-089-71/+177
| | | | | | | | | | | | | | | * 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.
* 2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-01-082-1/+6
| | | | * score/Makefile.am: Add missing file.
* Revert accidental commit of test code.Jennifer Averett2008-01-072-4/+0
|
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-072-5/+9
| | | | * libmisc/monitor/mon-manager.c: Style. Eliminate tabs.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-077-8/+121
| | | | | | | | | * libmisc/Makefile.am: Add new files. * libmisc/shell/internal.h: Prototype for rtems_shell_print_heap_info() * libmisc/shell/main_mallocinfo.c: Use rtems_shell_print_heap_info(). * libmisc/shell/shellconfig.h: Add wkspace command. * libmisc/shell/main_wkspaceinfo.c, libmisc/shell/print_heapinfo.c: New files.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-074-14/+19
| | | | | | | | * score/inline/rtems/score/isr.inl: Fix spacing. * score/src/apimutexallocate.c: Fix spacing. * score/src/coremsgseize.c: Check for message pending instead of message pending count to avoid dead code from inlined chain routine. It checks if the chain is empty so is redundant to count == 0.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-073-3/+8
| | | | | * rtems/src/eventseize.c, rtems/src/eventtimeout.c: Minor style clean up.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-073-1/+9
| | | | | * posix/src/pthreadcreate.c: Add commit. * posix/src/pthreadinitthreads.c: Fix line length.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-072-0/+21
| | | | * score/inline/rtems/score/object.inl: Add _Objects_Is_api_valid.
* 2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-01-072-2/+6
| | | | | * score/src/threadget.c: Use _Objects_Is_api_valid rather than open coding it.
* 2008-01-05 Chris Johns <chrisj@rtems.org>Chris Johns2008-01-055-253/+398
| | | | | | | | | | | | | | * configure.ac: Fix typo in the strict order mutex CPU OPTs test. * libmisc/shell/shell.c: Handle '#' comment characters correctly. * libblock/include/rtems/flashdisk.h: Add docmentation about the control fields. Add more control fields to handle the flash when full. * libblock/src/flashdisk.c: Fix the descriptor erase test so it detects a descriptor is erased. Add support for unavailable blocks the user can configure. Print the used list as a diag. Fix the bug when a page is detected as failed and present on more than one queue. Add a count to the queues so queue length can be used to manage compaction.
* 2008-01-03 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-01-043-9/+16
| | | | | | | | * score/src/threadhandler.c, sapi/src/exshutdown.c: cannot call _fini via atexit() from rtems_shutdown_executive() because at the point where rtems_shutdown_executive is called the C-library is already dead. Instead, register an atexit(_fini) after calling _init().
* 2007-12-28 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-283-1/+47
| | | | | | * 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-22 Chris Johns <chrisj@rtems.org>Chris Johns2007-12-2228-91/+3192
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: fixed bug that always enabled strict order mutexes. * score/inline/rtems/score/coremutex.inl: Fixed coding standard. * score/src/coremutex.c: Add the holder's thread to the lock_mutex list if the mutex is initialised locked. * libnetworking/rtems/rtems_glue.c: Changed semaphore error message to show the error is an rtems-net error. * libmisc/monitor/mon-network.c: Removed warnings. * telnetd/icmds.c: Changed shell_* to rtems_shell_*. * score/Makefile.am: Fixed typo that stopped 'make tags' working. * libmisc/shell/err.c, libmisc/shell/err.h, libmisc/shell/errx.c, libmisc/shell/extern-cp.h, libmisc/shell/fts.c, libmisc/shell/fts.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c, libmisc/shell/verr.c, libmisc/shell/verrx.c, libmisc/shell/vwarn.c, libmisc/shell/vwarnx.c, libmisc/shell/warn.c, libmisc/shell/warnx.c: New. Ported from BSD. * libmisc/shell/shellconfig.h: Add the cp command. * libmisc/Makefile.am: Add the new files to the shell. * libmisc/shell/shell.c, libmisc/shell/shell.h: Add scripting support. * libblock/src/flashdisk.c: Fixed disk drive count size setting bug.
* 2007-12-21 Xi Yang <hiyangxi@gmail.com>Joel Sherrill2007-12-212-1/+10
| | | | | | * rtems/src/semtranslatereturncode.c: Add support for proper stacking of priority inheritance on mutexes as well as enforce proper order of release.
* 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-214-3/+66
| | | | | | | | * configure.ac, score/include/rtems/score/coremutex.h, score/inline/rtems/score/coremutex.inl: Add the ability to disable inlining coremutex seize. This reduces the code size and also improves the process of coverage analysis. * score/src/coremutexseizeintr.c: New file.
* 2007-12-21 Xi Yang <hiyangxi@gmail.com>Joel Sherrill2007-12-217-8/+96
| | | | | | | | | * configure.ac, score/include/rtems/score/coremutex.h, score/include/rtems/score/thread.h, score/inline/rtems/score/coremutex.inl, score/src/coremutexsurrender.c, score/src/threadinitialize.c: Add support for proper stacking of priority inheritance on mutexes as well as enforce proper order of release.
* 2007-12-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-212-8/+11
| | | | | | PR 1268/cpukit * libcsupport/include/rtems/assoc.h: There is no rtems_assoc_ptr_by_value method.
* Fix typo.Ralf Corsepius2007-12-211-1/+1
|
* Make gettimeofday() POSIX-compliant.Ralf Corsepius2007-12-211-1/+2
|
* Make sync() POSIX-compliant.Ralf Corsepius2007-12-211-3/+1
|
* 2007-12-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-12-211-0/+5
| | | | | * src/sync.c: Make sync() POSIX-compliant. * libcsupport/src/__gettod.c: Make gettimeofday() POSIX-compliant.
* 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-202-15/+16
| | | | * posix/src/killinfo.c: Clean up and eliminate some dead code paths.
* 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-202-0/+5
| | | | * posix/include/rtems/posix/timer.h: Include rtems/score/object.h.
* 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-202-1/+5
| | | | * rtems/score/cpu.h: Use correct register name.
* 2007-12-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-204-1/+39
| | | | | | * rtems/Makefile.am, rtems/include/rtems/rtems/tasks.h: Add rtems_task_self() directive. * rtems/src/taskself.c: New file.
* 2007-12-20 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2007-12-205-22/+46
| | | | | | * posix/Makefile.am, posix/src/kill.c, posix/src/killinfo.c: Split file and resolved copyright information. * posix/src/kill_r.c: New file.
* 2007-12-20 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2007-12-202-7/+30
| | | | * posix/src/ualarm.c: Fixed bug where iteration did not work correctly.
* 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-192-3/+5
| | | | | * sapi/include/confdefs.h: Revert. Requires info not available at preprocessing time.
* 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-192-0/+9
| | | | | | * sapi/include/confdefs.h: Catch the error when the user lowers the maximum number of drivers below the number of statically configured ones.
* 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-195-13/+20
| | | | | | | * sapi/src/extension.c, sapi/src/extensioncreate.c, sapi/src/extensiondelete.c, sapi/src/extensionident.c: Extension Manager clean up. Update object id switches to new pattern. Catch some NULL parameter errors.
* 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2007-12-192-7/+40
| | | | * posix/src/psignalunblockthread.c: Remove source that
* 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2007-12-192-12/+12
| | | | | * posix/src/psignalchecksignal.c: Make assert active during debug mode only
* 2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2007-12-192-22/+27
| | | | * posix/src/psignal.c: Move source around to enable path testing
* 2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-1912-37/+215
| | | | | | | | | | | * 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-1825-524/+1178
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-1739-118/+141
| | | | | | | | | | | | | | | | | | | | | | | * libmisc/shell/main_alias.c, libmisc/shell/main_blksync.c, libmisc/shell/main_cat.c, libmisc/shell/main_cd.c, libmisc/shell/main_chdir.c, libmisc/shell/main_chmod.c, libmisc/shell/main_chroot.c, libmisc/shell/main_cpuuse.c, libmisc/shell/main_date.c, libmisc/shell/main_dir.c, libmisc/shell/main_exit.c, libmisc/shell/main_help.c, libmisc/shell/main_id.c, libmisc/shell/main_logoff.c, libmisc/shell/main_ls.c, libmisc/shell/main_mallocinfo.c, libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c, libmisc/shell/main_mfill.c, libmisc/shell/main_mkdir.c, libmisc/shell/main_mmove.c, libmisc/shell/main_mount.c, libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_nfs.c, libmisc/shell/main_mount_tftp.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c, libmisc/shell/main_pwd.c, libmisc/shell/main_rm.c, libmisc/shell/main_rmdir.c, libmisc/shell/main_stackuse.c, libmisc/shell/main_tty.c, libmisc/shell/main_umask.c, libmisc/shell/main_unmount.c, libmisc/shell/main_whoami.c, libmisc/shell/shell_cmdset.c, libmisc/shell/shellconfig.h: Change rtems_Shell_ to rtems_shell_.
* 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-175-49/+87
| | | | | | | | * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add malloc command with info and dump as replacement for older command. Fix what looked like a typo for mount sub-commands. * libmisc/shell/main_mallocinfo.c: New file. * libmisc/shell/main_mallocdump.c: Removed.
* 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-174-4/+51
| | | | | | * 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-1728-0/+104
| | | | * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.
* 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2007-12-172-18/+31
| | | | | * libmisc/stackchk/check.c: Add print of current stack pointer and stack info even if stack checker is not initialized.