summaryrefslogtreecommitdiffstats
path: root/cpukit/score (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Delete bogus THREAD_QUEUE_WAIT_FOREVERSebastian Huber2015-04-221-5/+0
| | | | | It makes no sense to use this indirection since the type for timeout values is Watchdog_Interval.
* score: Delete object control block ISR lockSebastian Huber2015-04-216-181/+1
| | | | | | | The Objects_Control::Lock was a software layer violation. It worked only for the threads since they are somewhat special. Update #2273.
* score: Add _Thread_Get_interrupt_disable()Sebastian Huber2015-04-212-28/+82
| | | | | | | | | | Remove _Thread_Acquire() and _Thread_Acquire_for_executing(). Add utility functions for the default thread lock. Use the default thread lock for the RTEMS events. There is no need to disable thread dispatching and a Giant acquire in _Event_Timeout() since this was already done by the caller. Update #2273.
* score: Modify _Thread_Dispatch_disable_critical()Sebastian Huber2015-04-212-9/+11
| | | | | Return the current processor to be in line with _Thread_Disable_dispatch().
* score: _Objects_Get_isr_disable()Sebastian Huber2015-04-212-9/+0
| | | | | | | | Do not disable thread dispatching and do not acquire the Giant lock. This makes it possible to use this object get variant for fine grained locking. Update #2273.
* score: _Objects_Get_isr_disable()Sebastian Huber2015-04-215-38/+36
| | | | | | | Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for low-level locking. Update #2273.
* score: Add _ISR_lock_ISR_disable/enable()Sebastian Huber2015-04-202-2/+38
|
* score: Refactor SMP cache manager supportSebastian Huber2015-04-203-8/+167
|
* or1k-utility.h: Add missing end of C++ header patternJoel Sherrill2015-04-171-0/+4
| | | | closes 2326.
* score: Improve assertMartin Galvan2015-04-171-1/+5
| | | | | While cpu_self->thread_dispatch_disable_level shouldn't ever be zero, it would be better to check it before doing the decrement.
* score: Fix _TOD_Set_with_timestamp()Sebastian Huber2015-04-171-4/+5
| | | | | Update the current time before the watchdog adjust so that timer routines observe the new time.
* score: Add _ISR_lock_Flash()Sebastian Huber2015-04-161-0/+31
|
* score: Add const qualifierSebastian Huber2015-04-163-3/+3
|
* score: Fix _API_Mutex_Is_locked()Sebastian Huber2015-04-161-9/+1
| | | | | Remove superfluous ISR disable/enable. In addition using a stand-alone _ISR_Disable/Enable is wrong on SMP configurations.
* score: Delete unused WATCHDOG_MAXIMUM_INTERVALSebastian Huber2015-04-161-8/+0
|
* score: Fix nameSebastian Huber2015-04-152-3/+3
|
* Add test assertion for allocator mutex being unlockedJoel Sherrill2015-04-143-1/+44
| | | | | | | | | | The Allocator Mutex should not be locked outside a tested service call. In an SMP test or heavily multithreaded test, this is possible since another thread could have the lock for an extended period of time but this is not the norm for the tests. updates 2319.
* score: Rename _Watchdog_Reset()Sebastian Huber2015-04-141-1/+1
| | | | Update #2307.
* score: Add Watchdog_HeaderSebastian Huber2015-04-137-44/+64
| | | | | | | This type is intended to encapsulate all state to manage a watchdog chain. Update #2307.
* score: Split _Watchdog_Adjust()Sebastian Huber2015-04-133-96/+55
| | | | | | | | | Split _Watchdog_Adjust() into _Watchdog_Adjust_backward() and _Watchdog_Adjust_forward(). Remove Watchdog_Adjust_directions, _Watchdog_Adjust_seconds() and _Watchdog_Adjust_ticks(). This avoids to check the same condition again. Update #2307.
* arm: Align ARM exception frame to 8 bytesDaniel Krueger2015-04-102-1/+7
| | | | | | | | | | | The stack pointer must be aligned on 8 byte boundary on ARM, so the size of the exception frame must be a multiple of 8 bytes. Otherwise we might/will get an alignment fault, when executing code in the data abort handler for example. Close #2318. Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
* score: Fix thread queue race conditionSebastian Huber2015-04-091-1/+0
| | | | | | | On uni-processor configurations the change of the thread blocking state in _Thread_queue_Requeue_priority() did no harm and was simply useless. However on SMP configurations this resulted in invalid state changes leading to a wrong resource ownership.
* score: Use _Thread_Clear_state() for _Thread_ReadySebastian Huber2015-04-084-54/+19
|
* rtems: Atomically suspend/resume tasksSebastian Huber2015-04-081-15/+0
|
* score: Return prev state in thread state set/clearSebastian Huber2015-04-083-17/+29
|
* score: Simplify _Thread_Set_state()Sebastian Huber2015-04-082-17/+14
|
* score: Move _Watchdog_Ticks_since_boot definitionSebastian Huber2015-04-083-1/+31
|
* or1k: Send halt signal to or1k simulators when rtems terminatesHesham ALMatary2015-04-022-1/+11
|
* sparc: Ensure interrupt service after ISR enableSebastian Huber2015-03-251-1/+8
|
* score: Fix MrsP ISR/task sychronizationSebastian Huber2015-03-241-9/+12
|
* score: Add scheduler acquire/releaseSebastian Huber2015-03-248-29/+64
| | | | | | | This is currently a global lock for all scheduler instances. It should get replaced with one lock per scheduler instance in the future. Update #2273.
* score: Use a dedicated ISR lock for thread queuesSebastian Huber2015-03-241-20/+34
| | | | | | | | This makes it possible to use the standard thread queues in combination with objects using fine grained locking. There is no change for uni-processor configurations. Update #2273.
* score: Add thread lockSebastian Huber2015-03-245-6/+209
| | | | Update #2273.
* score: Add thread priority change handlerSebastian Huber2015-03-246-69/+131
| | | | | | | | | | Since the thread current priority change and thread queue requeue is performed in one critical section it is possible to simplify the thread queue requeue procedure. Add a thread queue agnostic thread priority change handler so that we are able to use alternative thread queue implementations. Update #2273.
* rtems/score/tls.h: Add casts to eliminate warnings on some targetsJoel Sherrill2015-03-241-3/+9
|
* score: Simplify debug code and use _Assert()Sebastian Huber2015-03-222-58/+11
|
* score: Move _Thread_queue_Requeue()Sebastian Huber2015-03-223-68/+43
| | | | Now all the main thread queue operations are in one module.
* score: Move _Thread_queue_Extract()Sebastian Huber2015-03-225-174/+118
| | | | | | | | Move _Thread_queue_Dequeue(). We need all or no thread queue functions so it makes no sense to have them in separate modules. One module enables compiler optimizations without link-time optimization. Make _Thread_blocking_operation_Finalize() static since it is use now only in one module.
* score: Move _Thread_blocking_operation_Cancel()Sebastian Huber2015-03-224-124/+90
| | | | | | | Move _Thread_blocking_operation_Cancel() and make static since it is only used by _Thread_queue_Enqueue_with_handler(). Move _Thread_blocking_operation_Finalize().
* Replace www.rtems.com with www.rtems.orgSebastian Huber2015-03-202-2/+2
|
* score: Delete unused _Timestamp_(To|From)_ticks()Alexander Krutwig2015-03-204-103/+1
|
* score: Delete unused _Timestamp_Divide_by_integerAlexander Krutwig2015-03-204-85/+1
|
* score: Fix _Thread_Change_priority()Sebastian Huber2015-03-203-14/+31
| | | | | | | | | | Atomically update the current priority of a thread and the wait queue. Serialize the scheduler update in a separate critical section with a generation number. New test sptests/spintrcritical23. Close #2310.
* score: Delete unused _Timestamp_Is_valid()Alexander Krutwig2015-03-192-31/+0
|
* score: Fix _Debug_Is_owner_of_allocator()Sebastian Huber2015-03-191-2/+11
|
* score: Ensure properties of CPU_Uint32ptrSebastian Huber2015-03-171-0/+10
|
* cpukit: add and use CPU_Uint32ptr typeGedare Bloom2015-03-1621-2/+61
|
* rtems: make error codes uintptr_tGedare Bloom2015-03-161-1/+1
|
* score: Add _Objects_ISR_disable_and_acquire()Sebastian Huber2015-03-151-7/+22
|
* score/or1k: Fix warnings. Add missing prototypesHesham ALMatary2015-03-131-0/+4
| | | | Closes #2304