summaryrefslogtreecommitdiffstats
path: root/testsuites (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-13score: TypoSebastian Huber1-1/+1
2015-07-01score: Accept NULL pointer in _Freechain_Put()Sebastian Huber1-0/+2
With this a _Freechain_Put( _Freechain_Get() ) works always.
2015-07-01score: Freechain handler API changesSebastian Huber2-152/+19
Replace the extend function with an allocator since this fits better to the current use case.
2015-06-26score: Hide SMP lock profiling impl if disabledSebastian Huber1-2/+2
The problem is that empty structures have a different size in C and C++.
2015-06-26libmisc: Simplify <rtems/stackchk.h>Sebastian Huber1-0/+1
Drop the <rtems/score/percpu.h> include since this file exposes a lot of implementation details.
2015-06-22rtems: Add rtems_interrupt_local_disable|enable()Sebastian Huber6-81/+101
Add rtems_interrupt_local_disable|enable() as suggested by Pavel Pisa to emphasize that interrupts are only disabled on the current processor. Do not define the rtems_interrupt_disable|enable|flash() macros and functions on SMP configurations since they don't ensure system wide mutual exclusion.
2015-06-19tmtests/tm27: Use scheduler lockSebastian Huber1-10/+5
2015-06-19sptests/sp37: Fix type and simplifySebastian Huber1-15/+7
2015-06-15Remove use ticks for statistics configure option.Joel Sherrill1-42/+22
This was obsolete and broken based upon recent time keeping changes. Thie build option was previously enabled by adding USE_TICKS_FOR_STATISTICS=1 to the configure command line. This propagated into the code as preprocessor conditionals using the __RTEMS_USE_TICKS_FOR_STATISTICS__ conditional.
2015-06-13score: Add _Watchdog_Preinitialize()Sebastian Huber1-4/+4
Add an assert to ensure that the watchdog is the proper state for a _Watchdog_Initialize(). This helps to detect invalid initializations which may lead to a corrupt watchdog chain.
2015-06-12sptests/sptasknopreempt01: New testSebastian Huber6-0/+130
Update #2365.
2015-06-09sptests/sptimecounter03: New testSebastian Huber6-0/+144
2015-06-09sptests/spcontext01: Add second volatile clobberSebastian Huber1-1/+10
Do a volatile clobber in the context switch extension to cover the path through _Thread_Do_dispatch() invoked after interrupt processing.
2015-06-03sptests/spcontext01: Improve outputSebastian Huber2-10/+20
2015-06-03smptests/smpscheduler02: Reduce required CPU countSebastian Huber1-41/+50
2015-06-03smptests/smpmrsp01: Reduce required CPU countSebastian Huber1-8/+13
2015-06-03smptests/smpscheduler03: Use proper lockSebastian Huber1-9/+9
2015-05-29tmtests/tm26: Fix context switch to FP taskSebastian Huber1-3/+0
It is wrong to restore the floating point context here. The _Context_Switch() ends up in _Thread_Handler() which will call _Thread_Restore_fp(). In _Thread_Do_dispatch() the FP restore is after the context switch.
2015-05-29Revert "tmtests/tm26: Avoid NULL pointer access"Sebastian Huber1-0/+3
There is no NULL pointer access. Please note that _Thread_Get_executing() != executing variable in Low_task(). This reverts commit 5611839a7e2e371dd1f327c336c785095f634e55.
2015-05-29tmtests/tm26: Avoid NULL pointer accessSebastian Huber1-3/+0
2015-05-27libtests/i2c01: Avoid stack overflowSebastian Huber1-0/+2
2015-05-27score: Replace _API_Mutex_Is_locked()Sebastian Huber1-26/+19
Replace _API_Mutex_Is_locked() with _API_Mutex_Is_owner().
2015-05-27jffs2: Move into separate librarySebastian Huber8-8/+16
In case the zlib compression was used, then the librtemscpu.a depended on libz.a. To avoid a GCC patch or complicated link flags move the JFFS2 support into a separate library to use a simple "-ljffs2 -lz" to link the executable.
2015-05-26sptests/spcontext01: Test deferred FP contextAlexander Krutwig2-20/+47
2015-05-20timecounter: Use in RTEMSAlexander Krutwig8-11/+348
Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
2015-05-20timecounter: Port to RTEMSAlexander Krutwig6-0/+185
New test sptests/timecounter01. Update #2271.
2015-05-19smptests/smpscheduler03: RestructureSebastian Huber1-41/+42
Restructure to avoid large maximum thread dispatch disabled times.
2015-05-19psxualarm: Avoid endless signal handlingSebastian Huber1-2/+2
Increase the ualarm timer interval to avoid endless signal handling.
2015-05-19score: Add static initializers for thread queuesSebastian Huber1-0/+14
2015-05-19score: Remove Giant lock in rtems_clock_tick()Sebastian Huber1-4/+0
Update #2307.
2015-05-19score: Rework _Thread_Change_priority()Sebastian Huber1-19/+43
Move the writes to Thread_Control::current_priority and Thread_Control::real_priority into _Thread_Change_priority() under the protection of the thread lock. Add a filter function to _Thread_Change_priority() to enable specialized variants. Avoid race conditions during a thread priority restore with the new Thread_Control::priority_restore_hint for an important average case optimizations used by priority inheritance mutexes. Update #2273.
2015-05-19score: New thread queue implementationSebastian Huber5-67/+54
Use thread wait flags for synchronization. The enqueue operation is now part of the initial critical section. This is the key change and enables fine grained locking on SMP for objects using a thread queue like semaphores and message queues. Update #2273.
2015-05-19score: Add Thread_queue_OperationsSebastian Huber1-2/+2
Replace the Thread_Priority_control with more general Thread_queue_Operations which will be used for generic priority change, timeout, signal and wait queue operations in the future. Update #2273.
2015-05-19score: Generalize _Event_Timeout()Sebastian Huber1-3/+3
Add a thread wait timeout code. Replace _Event_Timeout() with a general purpose _Thread_Timeout() watchdog handler. Update #2273.
2015-05-19score: Reduce thread wait statesSebastian Huber1-3/+3
Merge THREAD_WAIT_STATE_SATISFIED, THREAD_WAIT_STATE_TIMEOUT, THREAD_WAIT_STATE_INTERRUPT_SATISFIED, and THREAD_WAIT_STATE_INTERRUPT_TIMEOUT into one state THREAD_WAIT_STATE_READY_AGAIN. This helps to write generic routines to block a thread. Update #2273.
2015-05-19score: New timer server implementationSebastian Huber2-110/+59
Use mostly the standard watchdog operations. Use a system event for synchronization. This implementation is simpler and offers better SMP performance. Close #2131.
2015-05-19score: Add Watchdog_IteratorSebastian Huber2-3/+115
Rewrite the _Watchdog_Insert(), _Watchdog_Remove() and _Watchdog_Tickle() functions to use iterator items to synchronize concurrent operations. This makes it possible to get rid of the global variables _Watchdog_Sync_level and _Watchdog_Sync_count which are a blocking point for scalable SMP solutions. Update #2307.
2015-05-19score: Add header to _Watchdog_Remove()Sebastian Huber2-2/+2
Add watchdog header parameter to _Watchdog_Remove() to be in line with the other operations. Add _Watchdog_Remove_ticks() and _Watchdog_Remove_seconds() for convenience. Update #2307.
2015-05-19score: _Thread_queue_Extract()Sebastian Huber1-25/+4
Remove thread queue parameter from _Thread_queue_Extract() since the current thread queue is stored in the thread control block.
2015-05-15smptests/smpcache01: RestructureSebastian Huber2-109/+105
Restructure to avoid large maximum thread dispatch disabled times.
2015-05-11score: Fix scheduler helping protocolSebastian Huber2-250/+478
Account for priority changes of threads executing in a foreign partition. Exchange idle threads in case a victim node uses an idle thread and the new scheduled node needs an idle thread.
2015-05-07sptests/spcontext01: Check FPU task combinationsAlexander Krutwig2-12/+43
2015-04-27sptests/spstkalloc02: Fix namespace issueSebastian Huber1-3/+3
Avoid collision with <sys/param.h> defined PAGE_SIZE.
2015-04-23sp13/system.h: Account for all message buffersJoel Sherrill1-2/+2
There may be a way to reduce the memory requirements but it will require time to ensure the math is right and it passes on all targets. At the current time, it fails on 22 BSPs which run on simulators.
2015-04-23score: Delete Thread_queue_Control::stateSebastian Huber1-1/+1
Use a parameter for _Thread_queue_Enqueue() instead to reduce memory usage.
2015-04-22smptests/smpcache01: Enable interrupts before waiting for other CPUsDaniel Cederman1-2/+2
Otherwise there is a risk that a CPU misses a cache manager message from another CPU and the test hangs.
2015-04-21score: Add _Thread_Get_interrupt_disable()Sebastian Huber1-6/+6
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.
2015-04-20score: Add _ISR_lock_ISR_disable/enable()Sebastian Huber1-0/+6
2015-04-20score: Refactor SMP cache manager supportSebastian Huber1-17/+6
2015-04-17sp13: Document message buffer usage and adjust configurationJoel Sherrill1-5/+26