summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libmisc/untar: Set the perms to the value in the tar file.Chris Johns2016-08-092-20/+34
| | | | | | | This patch parses the mode field in the tar header and sets the directory or file to the mode value in the header. Closes #2768.
* score: Add debug support to red-black treesSebastian Huber2016-08-0811-32/+62
| | | | This helps to detect double insert and extract errors.
* posix: Fix for RTEMS_DEBUGSebastian Huber2016-08-081-0/+1
|
* score: Simplify _Thread_Finalize_life_change()Sebastian Huber2016-08-051-7/+1
|
* score: Fix a release/cancel job race conditionSebastian Huber2016-08-0416-83/+72
| | | | | | | | Split up the potential thread priority change in the scheduler release/cancel job operation. Protect the rate monotonic period state with a dedicated SMP lock. This avoids a race condition during _Rate_monotonic_Timeout() while _Rate_monotonic_Cancel() is called on another processor.
* score: Fix _Thread_queue_Path_release()Sebastian Huber2016-08-041-8/+13
| | | | | | It is possible that the owner of the terminal link of a thread queue path waits on a thread queue. However, this thread queue has no owner, e.g. a thread queue of a message queue.
* score: Fix _Scheduler_EDF_Cancel_job_filter()Sebastian Huber2016-08-041-1/+1
| | | | | Commit 21bdca49eea9213cc31a497072d01192eed8675e accidentally used a function which may be added later.
* score: Optimize _Thread_queue_Path_release()Sebastian Huber2016-08-041-7/+29
| | | | Update #2556.
* score: Indroduce cancel job scheduler operationSebastian Huber2016-08-0413-9/+94
| | | | | Do not use a deadline value of zero to indicate a job cancellation. Use a dedicated scheduler operation for this.
* score: Fix and simplify thread wait locksSebastian Huber2016-08-038-269/+139
| | | | | | | | | | There was a subtile race condition in _Thread_queue_Do_extract_locked(). It must first update the thread wait flags and then restore the default thread wait state. In the previous implementation this could lead under rare timing conditions to an ineffective _Thread_Wait_tranquilize() resulting to a corrupt system state. Update #2556.
* posix: Fix for RTEMS_DEBUGSebastian Huber2016-08-031-2/+8
|
* score: Fix for RTEMS_DEBUGSebastian Huber2016-08-031-0/+1
|
* linker set: Allow adding any variable into contentChristian Mauderer2016-08-021-0/+8
| | | | | | | | | | | The newly created macro adds any kind of variable into a linker set. It allows (for example) the saving an execution state of a function using the following method: - put a group of different variables into one linker set - save the memory area containing the group of variables before the execution of a function - restore the memory area after the function has been executed
* score: Fix for RTEMS_DEBUGSebastian Huber2016-08-011-0/+1
|
* score: Fix for RTEMS_DEBUG.Chris Johns2016-08-011-0/+2
|
* posix: nanosleep: optimize away a time conversionGedare Bloom2016-07-291-2/+1
| | | | updates #2732
* score: Add deadlock detectionSebastian Huber2016-07-278-19/+356
| | | | | | | | | | The mutex objects use the owner field of the thread queues for the mutex owner. Use this and add a deadlock detection to _Thread_queue_Enqueue_critical() for thread queues with an owner. Update #2412. Update #2556. Close #2765.
* score: Turn thread lock into thread wait lockSebastian Huber2016-07-2719-420/+766
| | | | | | | | | The _Thread_Lock_acquire() function had a potentially infinite run-time due to the lack of fairness at atomic operations level. Update #2412. Update #2556. Update #2765.
* score: Priority inherit thread queue operationsSebastian Huber2016-07-279-77/+116
| | | | | | | | | Move the priority change due to priority interitance to the thread queue enqueue operation to simplify the locking on SMP configurations. Update #2412. Update #2556. Update #2765.
* score: Simplify _Thread_queue_Boost_priority()Sebastian Huber2016-07-273-19/+23
| | | | | | | | | | Raise the priority under thread queue lock protection and omit the superfluous thread queue priority change, since the thread is extracted anyway. The unblock operation will pick up the new priority. Update #2412. Update #2556. Update #2765.
* score: Split _Thread_Change_priority()Sebastian Huber2016-07-272-9/+62
| | | | | | Update #2412. Update #2556. Update #2765.
* score: Fix for RTEMS_DEBUGSebastian Huber2016-07-271-0/+1
|
* posix: Fix error statusSebastian Huber2016-07-271-2/+3
|
* cpukit: refactor nanosleep and use 64-bit timeout for threadqGedare Bloom2016-07-262-58/+68
| | | | | | | | | | * Fixes a bug with elapsed time calculations misusing absolute time arguments in nanosleep_helper by passing the requested relative interval. * Fixes a bug with truncation of absolute timeouts by passing the full 64-bit value to Thread_queue_Enqueue. * Share yield logic between nanosleep and clock_nanosleep. updates #2732
* Add Untar_FromGzChunk_Print() + TestAlexander Krutwig2016-07-263-1/+123
|
* Add Untar_FromChunk_Print() + TestAlexander Krutwig2016-07-262-1/+197
|
* score: FormatSebastian Huber2016-07-261-9/+9
|
* score: Fix printk() format specifiersSebastian Huber2016-07-261-2/+5
|
* score: FormatSebastian Huber2016-07-262-24/+21
|
* score: Add a STATES_DEBUGGER for use by debugging agents to a thread's state.Chris Johns2016-07-261-0/+2
|
* posix: fix clock_nanosleep and nanosleep clock useGedare Bloom2016-07-251-25/+68
| | | | | | | | | | Sleeping with CLOCK_REALTIME should use the WATCHDOG_ABSOLUTE clock discipline for the threadq so that the timeout interval may change in case the clock source changes. Similarly, CLOCK_MONOTONIC uses the WATCHDOG_RELATIVE threadq that will only wakeup the thread after the requested count of ticks elapse. updates #2732
* posix: cond_timedwait remember and use clock from condattrGedare Bloom2016-07-2515-15/+29
| | | | updates #2745
* posix: refactor cond wait support to defer abstime conversionGedare Bloom2016-07-254-32/+33
| | | | updates #2745
* cpukit/rtems: fix return type mismatch for _TOD_To_secondsGedare Bloom2016-07-251-1/+1
|
* posix: add clock_nanosleep and testsGedare Bloom2016-07-251-9/+46
| | | | updates #2732
* cpukit: Add and use Watchdog_Discipline.Gedare Bloom2016-07-2547-144/+200
| | | | | | | | | Clock disciplines may be WATCHDOG_RELATIVE, WATCHDOG_ABSOLUTE, or WATCHDOG_NO_TIMEOUT. A discipline of WATCHDOG_RELATIVE with a timeout of WATCHDOG_NO_TIMEOUT is equivalent to a discipline of WATCHDOG_NO_TIMEOUT. updates #2732
* score: Fix for RTEMS_DEBUGSebastian Huber2016-07-251-0/+1
|
* score: Relax thread begin extension environmentSebastian Huber2016-07-251-7/+8
| | | | Update #2752.
* score: Disable RTEMS_NO_RETURN for RTEMS_DEBUGSebastian Huber2016-07-251-1/+1
| | | | | Do not use RTEMS_NO_RETURN hints for debug configurations to ease use of stack traces in case of fatal errors.
* score: Fix for RTEMS_DEBUGSebastian Huber2016-07-221-0/+1
|
* score: Assert proper seqlock writer stateSebastian Huber2016-07-221-0/+3
| | | | Helps to detect invalid concurrent writes.
* score: Add debug support to chainsSebastian Huber2016-07-2216-7/+84
| | | | | | | This helps to detect * double insert, append, prepend errors, and * get from empty chain errors.
* posix: Fix double chain extractSebastian Huber2016-07-211-5/+2
|
* libdl/rtl-obj.c: synchronize cache after code relocation.Pavel Pisa2016-07-214-2/+74
| | | | | | | | Memory content changes caused by relocation has to be propagated to memory/cache level which is used/snooped during instruction cache fill. Closes #2438
* Misc: Spell length correctlyJoel Sherrill2016-07-121-1/+1
|
* DOSFS - LENGHT -> LENGTHJoel Sherrill2016-07-124-6/+6
| | | | closes #2756,
* score: Postpone SMP shutdown in _Terminate()Sebastian Huber2016-07-062-4/+7
| | | | | This enables fatal extensions to continue program execution after some fatal errors.
* score: Do not disable ISR in _Terminate()Sebastian Huber2016-07-062-9/+1
| | | | | | | This partially reverts 38ee75853f674977609bd078c69fb53420afdd08. Let the calling context decide if interrupts must be disabled or not. The goal is to enable fatal extensions to continue program execution after some fatal errors.
* libdl/rtl-obj.c: ensure that loaded code is synchronized through caches.Pavel Pisa2016-07-041-0/+2
| | | | | | | | | | | | Synchronize each cluster of sections of the same type separately to support even cases where text and data are allocated from different areas (for example due allocation from different MPU protection regions). rtems_cache_instruction_sync_after_code_change is called even to data sections. Propagation of data only changes should not require cache maintenance operation on sane SMP mutithread capable systems if barrier instruction is added but be on safe side even for case where self modifying code uses data sections initial values etc.
* rtems+bsps/cache: Define cache manager operations for code synchronization ↵Pavel Pisa2016-07-042-1/+30
| | | | | | | | | | | | | | and maximal alignment. There is need for unambiguous named and defined cache function which should be called when code is updated, loaded or is self-modifying. There should be function to obtain maximal cache line length as well. This function can and should be used for allocations which can be used for data and or code and ensures that there are no partial cache lines overlaps on start and end of allocated region.