summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Use common names for per-CPU variablesSebastian Huber2014-04-221-6/+6
| | | | | | | | | | | | | | | | Use "cpu" for an arbitrary Per_CPU_Control variable. Use "cpu_self" for the Per_CPU_Control of the current processor. Use "cpu_index" for an arbitrary processor index. Use "cpu_index_self" for the processor index of the current processor. Use "cpu_count" for the processor count obtained via _SMP_Get_processor_count(). Use "cpu_max" for the processor maximum obtained by rtems_configuration_get_maximum_processors().
* capture: Use ISR lock for SMP supportSebastian Huber2014-04-141-71/+72
|
* rtems: Rename rtems_smp_get_processor_count()Sebastian Huber2014-04-111-1/+1
| | | | | | Rename rtems_smp_get_processor_count() in rtems_get_processor_count(). Make rtems_get_processor_count() a function in uni-processor configurations to enable ABI compatibility with SMP configurations.
* score: Statically initialize IO managerSebastian Huber2014-04-101-3/+2
| | | | | | | | | | | | This simplifies the RTEMS initialization and helps to avoid a memory overhead. The workspace demands of the IO manager were not included in the <rtems/confdefs.h> workspace size estimate. This is also fixed as a side-effect. Update documentation and move "Specifying Application Defined Device Driver Table" to the section end. This sub-section is not that important for the user. Mentioning this at the beginning may lead to confusion.
* score: Delete CORE_mutex_Control::lockSebastian Huber2014-03-311-3/+5
| | | | | | | | The holder field is enough to determine if a mutex is locked or not. This leads also to better error status codes in case a rtems_semaphore_release() is done for a mutex without having the ownership.
* score: Delete CORE_mutex_Control::holder_idSebastian Huber2014-03-311-2/+7
| | | | We can use the holder pointer to get the identifier if necessary.
* score: Thread life cycle re-implementationSebastian Huber2014-03-311-0/+2
| | | | | | | | | | | | | | | | | | | The thread deletion is now supported on SMP. This change fixes the following PRs: PR1814: SMP race condition between stack free and dispatch PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract() The POSIX cleanup handler are now called in the right context (should be called in the context of the terminating thread). http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html Add a user extension the reflects a thread termination event. This is used to reclaim the Newlib reentrancy structure (may use file operations), the POSIX cleanup handlers and the POSIX key destructors.
* score: Add and use thread get/set CPU functionsSebastian Huber2014-03-311-1/+3
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-21103-104/+104
|
* cpukit/shell: Replace task variables with posix keys.Christian Mauderer2014-03-202-20/+40
| | | | | | | | | | | | Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. Update documentation for the shell. Adapt samples/fileio: - Add necessary objects. - Add login function and custom device name for better testing of the shell.
* network: Add help text for ifconfigRalf Kirchner2014-03-131-20/+57
|
* mw_uid: corrects uid_read_message short timeoutsAllan Hessenflow2014-01-091-2/+11
|
* cpukit/capture: Print the uptime and diff in ctrace.Chris Johns2013-12-241-17/+17
| | | | | | | | | | | Print the uptime and difference in nanoseconds to the previous record in the ctrace output. For example: 0:00:59.474927121 14760 0a01000c TNTD 235 235 CREATED_BY 0:00:59.474927418 297 0a010012 /dev 235 235 CREATED 0:00:59.474930799 3381 0a01000c TNTD 235 235 STARTED_BY 0:00:59.474931105 306 0a010012 /dev 235 235 STARTED 0:00:59.475072297 141192 0a01000c TNTD 235 235 SWITCHED_OUT
* cpukit/capture: Use the new RTEMS API to get the uptime in nanoseconds.Chris Johns2013-12-243-16/+57
| | | | | Use the new API to get the uptime in nanoseconds and update the capture engine.
* rtems: classic api to/from core priority conversionsDaniel Ramirez2013-12-211-1/+4
|
* cpukit/capture: Update the capture engine.Chris Johns2013-12-193-233/+195
| | | | | | | | | | | | The capture did not work due to changes in the workspace allocator. The engine now scans all existing tasks when enabled and does any allocations then. Fixed a bug in the ctset commandi in the CLI. Updated the capture engine to use 64bit nanosec timestamps. Fixed the CLI showing the stack usage.
* cpukit/shell: Control help break with SHELL_LINES env variable.Chris Johns2013-12-161-3/+11
| | | | | | | | Control the help command break with the SHELL_LINES evironment variable where the numeric value is the number of lines to break on. If the value is 0 the output is not broken. The default is 16 lines. Add shell documentation for the help command.
* gettimeofday: Add restrict keywordBryan Dunsmore2013-11-291-1/+1
|
* monitor: Add support for BSD wakeup stateSebastian Huber2013-11-141-0/+1
|
* internal.h/main_mdump.c: Convert main methods to staticJoel Sherrill2013-09-232-5/+3
|
* main_mv.c: Address set but not used warningJoel Sherrill2013-09-211-1/+5
| | | | | It looks like the paths that use tval are if 0'ed for RTEMS. Making all conditional on __rtems__ including the declaration.
* mouse_parser.c: Fix warning by properly checking return codeJoel Sherrill2013-09-211-1/+1
|
* uuid: make integer arithmetic conversion explicitGedare Bloom2013-09-051-1/+1
| | | | Upcast multiplication to 64-bit integer arithmetic.
* untar: check return value from mkdirGedare Bloom2013-09-051-1/+5
| | | | | | Check the return value from mkdir instead of failing silently. 1063857 Unchecked return value from library
* shell: Out-of-bounds accessGedare Bloom2013-09-051-8/+15
| | | | | | In case the length of cwd path plus the userScriptName exceeds PATH_MAX (255), the strncat calls will overflow scriptFile. Also check for getcwd failure.
* Stop a resource leakCynthia Rempel2013-08-261-0/+1
| | | | Stops a resource leak in the event that the system cannot malloc
* PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber2013-08-087-8/+0
|
* Fix compiler warningsR. Diez2013-08-061-5/+5
|
* score: Rename tod.h to todimpl.hSebastian Huber2013-08-012-2/+2
|
* smp: Add and use _Per_CPU_Get()Sebastian Huber2013-07-301-1/+1
| | | | | | Add and use _Per_CPU_Get_by_index() and _Per_CPU_Get_index(). Add _Per_CPU_Send_interrupt(). This avoids direct access of _Per_CPU_Information.
* smp: Use Thread_Control.is_executingSebastian Huber2013-07-301-7/+4
| | | | FIXME: This area needs proper locking.
* libmisc: Provide libutf8proc conditionallySebastian Huber2013-07-261-0/+2
|
* score: Merge tod implementation into one fileSebastian Huber2013-07-262-4/+3
| | | | | Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
* score: Create object implementation headerSebastian Huber2013-07-262-0/+2
| | | | | | Move implementation specific parts of object.h and object.inl into new header file objectimpl.h. The object.h contains now only the application visible API.
* score: Create states implementation headerSebastian Huber2013-07-262-2/+2
| | | | | | Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API.
* score: Merge sysstate API into one fileSebastian Huber2013-07-241-0/+1
|
* score: Merge wkspace API into one fileSebastian Huber2013-07-231-10/+9
|
* rtems: Create tasks implementation headerSebastian Huber2013-07-231-0/+1
| | | | | | Move implementation specific parts of tasks.h and tasks.inl into new header file tasksimpl.h. The tasks.h contains now only the application visible API.
* rtems: Create region implementation headerSebastian Huber2013-07-231-0/+1
| | | | | | Move implementation specific parts of region.h and region.inl into new header file regionimpl.h. The region.h contains now only the application visible API.
* rtems: Create part implementation headerSebastian Huber2013-07-231-0/+1
| | | | | | Move implementation specific parts of part.h and part.inl into new header file partimpl.h. The part.h contains now only the application visible API.
* Include missing <string.h>Sebastian Huber2013-07-238-0/+9
|
* rtems: Create event implementation headerSebastian Huber2013-07-231-1/+1
| | | | | | Move implementation specific parts of event.h, event.inl, eventset.h and eventset.inl into new header file eventimpl.h. The event.h contains now only the application visible API.
* rtems: Create attr implementation headerSebastian Huber2013-07-233-3/+3
| | | | | | Move implementation specific parts of attr.h and attr.inl into new header file attrimpl.h. The attr.h contains now only the application visible API.
* sapi: Create extension implementation headerSebastian Huber2013-07-231-0/+1
| | | | | | Move implementation specific parts of extension.h and extension.inl into new header file extensionimpl.h. The extension.h contains now only the application visible API.
* score: Create watchdog implementation headerSebastian Huber2013-07-224-2/+4
| | | | | | Move implementation specific parts of watchdog.h and watchdog.inl into new header file watchdogimpl.h. The watchdog.h contains now only the application visible API.
* posix: Create pthread implementation headerSebastian Huber2013-07-221-1/+1
| | | | | | Move implementation specific parts of pthread.h and pthread.inl into new header file pthreadimpl.h. The pthread.h contains now only the application visible API.
* cpuuse: Add SMP supportSebastian Huber2013-07-221-1/+10
|
* rtems: Create message queue implementation headerSebastian Huber2013-07-223-0/+3
| | | | | | Move implementation specific parts of message.h and message.inl into new header file messageimpl.h. The message.h contains now only the application visible API.
* libmisc: Use _Thread_Get_executing()Sebastian Huber2013-07-221-4/+5
|
* shell: Include missing header fileSebastian Huber2013-07-221-0/+1
|