summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pipe: Use proper semaphore attr for mutexSebastian Huber2016-06-061-2/+2
| | | | Close #2728.
* dosfs: Use proper semaphore attr for mutexSebastian Huber2016-06-061-1/+2
| | | | Close #2727.
* libblock: Use proper semaphore attr for mutexSebastian Huber2016-06-061-2/+1
| | | | Close #1452.
* libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns2016-06-032-127/+343
| | | | | | | | | | | | | | | | | | | Support creating directories for files with a path depth greater than 1. Some tar files can have files with a path depth greater than 1 and no directory entry in the tar file to create a directory. Support overwriting existing files and directories failing in a similar way to tar on common hosts. If a file is replaced with a file delete the file and create a new file. If a directory replaces a file remove the file and create the directory. If a file replaces a directory remove the directory, and if the directory is not empty and cannot be removed report an error. If a directory alreday exists do nothing leaving the contents untouched. The untar code now shares the common header parsing and initial processing with the actual writes still separate. No changes to the IMFS have been made. Updates #2415. Closes #2207.
* libmisc/stackchk: Fix printk warnings.Chris Johns2016-06-031-6/+6
|
* arm: Fix printk warnings.Chris Johns2016-06-031-16/+18
|
* score: Maybe fix _Thread_Lock_acquire()Sebastian Huber2016-06-022-42/+7
| | | | | | | The approach with the generation number was broken. The load/store of the current lock, the thread queue and the thread queue operations were not properly synchronized. Under certain conditions on a PowerPC T4240 old thread queue operations operated on a new thread queue (NULL pointer).
* score: Fix _Thread_Lock_acquire()Sebastian Huber2016-06-011-11/+12
| | | | | | | | | A read-modify-write operation is necessary to read the last value written. See for example C11 standard or Power ISA 2.07, Book II: Power ISA Virtual Environment Architecture, Section 1.6.3 Memory Coherence Required [Category: Memory Coherence] and Section 1.7.3 Atomic Update.
* smptests/smpatomic01: New test casesSebastian Huber2016-06-011-1/+3
| | | | | Demonstrate that a read-modify-write atomic operation may be necessary on some archtitectures to observe the latest value written.
* shell: Add CPUINFO commandSebastian Huber2016-05-315-0/+139
| | | | Update #2723.
* cpuuse: Hide implementation detailsSebastian Huber2016-05-316-5/+33
|
* Fix rtems_print_printer_fprintf()Sebastian Huber2016-05-312-3/+21
| | | | We must use vfprintf().
* score: Use owner of thread queue for CORE mutexSebastian Huber2016-05-302-13/+8
|
* rtems: Remove superfluous includesSebastian Huber2016-05-301-5/+0
|
* rtems: Fix semaphore field nameSebastian Huber2016-05-305-9/+9
|
* rtems: Move MrsP semaphore operationsSebastian Huber2016-05-307-27/+27
| | | | | Move MrsP semaphore operations to a less prominent location. Fix field name.
* score: Rework CORE inherit priority mutexSebastian Huber2016-05-3025-485/+292
| | | | | Provide dedicated seize and surrender methods for inherit priority mutexes. This eliminates CORE_mutex_Attributes.
* score: Rework CORE priority ceiling mutexSebastian Huber2016-05-3018-225/+327
| | | | | Rework seize and surrender methods to use CORE_ceiling_mutex_Control. This eliminates CORE_mutex_Disciplines.
* score: Add CORE mutex variantsSebastian Huber2016-05-3024-172/+510
| | | | | | | | Add CORE_recursive_mutex_Control and CORE_ceiling_mutex_Control to avoid the run-time evaluation of attributes to figure out how a particular mutex methods should behave. Start with the no protocol variants. This eliminates the CORE_MUTEX_DISCIPLINES_FIFO and CORE_MUTEX_DISCIPLINES_PRIORITY disciplines.
* posix: Delete POSIX_Mutex_Protocol::process_sharedSebastian Huber2016-05-302-4/+0
|
* posix: Avoid use of internal mutex methodsSebastian Huber2016-05-301-21/+10
| | | | Avoid use of internal mutex methods for pthread_mutex_setprioceiling().
* posix: Avoid use of internal mutex methodsSebastian Huber2016-05-301-23/+13
| | | | Avoid use of internal mutex methods for condition variables.
* rtems: Remove superfluous includesSebastian Huber2016-05-301-11/+1
|
* rtems: Simplify rtems_semaphore_delete()Sebastian Huber2016-05-303-39/+6
| | | | | Due to the unified status codes, we can now use a common flush and destroy method for semaphore and mutex variants.
* rtems: Simplify rtems_semaphore_flush()Sebastian Huber2016-05-301-10/+5
| | | | | Due to the unified status codes, we can now use a common flush method for semaphore and mutex variants.
* score: Simplify CORE mutexSebastian Huber2016-05-309-45/+53
| | | | | Remove superfluous support for simple binary semaphores. With this we can get rid of the CORE_MUTEX_NESTING_BLOCKS variant.
* score: Add semaphore variantsSebastian Huber2016-05-3016-182/+227
|
* rtems: Simplify rtems_semaphore_delete()Sebastian Huber2016-05-303-28/+28
|
* score: Use thread queue lock for MrsPSebastian Huber2016-05-303-10/+24
| | | | | | Replace the ISR lock in MRSP_Control with a thread queue. This simplifies the Classic semaphore implementation. Only the lock part of the thread queue is used.
* score: _CORE_mutex_Check_dispatch_for_seize()Sebastian Huber2016-05-3031-255/+344
| | | | | | | | | | | Move the safety check performed by _CORE_mutex_Check_dispatch_for_seize() out of the performance critical path and generalize it. Blocking on a thread queue with an unexpected thread dispatch disabled level is illegal in all system states. Add the expected thread dispatch disable level (which may be 1 or 2 depending on the operation) to Thread_queue_Context and use it in _Thread_queue_Enqueue_critical().
* score: Add _Thread_queue_Context_set_MP_callout()Sebastian Huber2016-05-3030-117/+105
| | | | | | Add _Thread_queue_Context_set_MP_callout() to simplify _Thread_queue_Context_initialize(). This makes it possible to more easily add additional fields to Thread_queue_Context.
* score: Adjust thread queue layoutSebastian Huber2016-05-304-41/+49
| | | | | | Adjust thread queue layout according to Newlib. This makes it possible to use the same implementation for <sys/lock.h> and CORE mutexes in the future.
* score: Use Newlib provided <machine/endian.h>Sebastian Huber2016-05-302-94/+37
|
* network: Align with Newlib type definitionsSebastian Huber2016-05-301-4/+5
|
* score: Add libatomic supportSebastian Huber2016-05-304-212/+80
| | | | Close #2695.
* score: Add Status_Control for all APIsSebastian Huber2016-05-26107-1551/+691
| | | | | | | | | | | Unify the status codes of the Classic and POSIX API to use the new enum Status_Control. This eliminates the Thread_Control::Wait::timeout_code field and the timeout parameter of _Thread_queue_Enqueue_critical() and _MPCI_Send_request_packet(). It gets rid of the status code translation tables and instead uses simple bit operations to get the status for a particular API. This enables translation of status code constants at compile time. Add _Thread_Wait_get_status() to avoid direct access of thread internal data structures.
* posix: Fix sem_init() with too large initial valueSebastian Huber2016-05-261-1/+6
| | | | Close #2721.
* Fix semaphore post overflow statusSebastian Huber2016-05-266-9/+18
| | | | Close #2720.
* posix: Fix pthread_spin_unlock() error statusSebastian Huber2016-05-253-17/+7
| | | | Close #2719.
* score: Move thread queue MP callout to contextSebastian Huber2016-05-2596-1298/+1039
| | | | | | | | Drop the multiprocessing (MP) dependent callout parameter from the thread queue extract, dequeue, flush and unblock methods. Merge this parameter with the lock context into new structure Thread_queue_Context. This helps to gets rid of the conditionally compiled method call helpers.
* score: Get rid of mp_id parameterSebastian Huber2016-05-2543-156/+23
| | | | | Get rid of the mp_id parameter used for some thread queue methods. Use THREAD_QUEUE_QUEUE_TO_OBJECT() instead.
* score: Move thread queue object supportSebastian Huber2016-05-2512-53/+40
|
* mpci: Fix thread queue flush methodSebastian Huber2016-05-256-97/+56
| | | | | | | We must call the MP callout for proxies if we unblock them after a thread queue extraction. This was missing in _Thread_queue_Flush_critical(). Move thread remove timer and unblock code to new function _Thread_Remove_timer_and_unblock().
* confdefs.h: Fix heap alloc size estimateSebastian Huber2016-05-251-4/+8
| | | | Account for the heap minimum block size.
* libmisc: Fix printk format warnings.Chris Johns2016-05-252-3/+3
|
* score/i386: Fix printk format warnings.Chris Johns2016-05-251-5/+7
|
* libcsupport: Fix printk warnings.Chris Johns2016-05-251-2/+2
|
* libfs/jff2: Avoid printk format warnings.Chris Johns2016-05-253-15/+30
| | | | | This change does not fix the printk format warnings rather it ignores them.
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-2536-402/+565
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* score: Fix blocking _CORE_message_queue_Submit()Sebastian Huber2016-05-244-17/+4
| | | | Close #2718.