summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sptests/spcontext01: Test deferred FP contextAlexander Krutwig2015-05-262-20/+47
|
* timecounter: Use in RTEMSAlexander Krutwig2015-05-208-11/+348
| | | | | | | | Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
* timecounter: Port to RTEMSAlexander Krutwig2015-05-206-0/+185
| | | | | | New test sptests/timecounter01. Update #2271.
* score: Add static initializers for thread queuesSebastian Huber2015-05-191-0/+14
|
* score: Remove Giant lock in rtems_clock_tick()Sebastian Huber2015-05-191-4/+0
| | | | Update #2307.
* score: New thread queue implementationSebastian Huber2015-05-195-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.
* score: Add Thread_queue_OperationsSebastian Huber2015-05-191-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.
* score: Generalize _Event_Timeout()Sebastian Huber2015-05-191-3/+3
| | | | | | | Add a thread wait timeout code. Replace _Event_Timeout() with a general purpose _Thread_Timeout() watchdog handler. Update #2273.
* score: Reduce thread wait statesSebastian Huber2015-05-191-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.
* score: New timer server implementationSebastian Huber2015-05-192-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.
* score: Add Watchdog_IteratorSebastian Huber2015-05-192-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.
* score: Add header to _Watchdog_Remove()Sebastian Huber2015-05-192-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.
* score: _Thread_queue_Extract()Sebastian Huber2015-05-191-25/+4
| | | | | Remove thread queue parameter from _Thread_queue_Extract() since the current thread queue is stored in the thread control block.
* sptests/spcontext01: Check FPU task combinationsAlexander Krutwig2015-05-072-12/+43
|
* sptests/spstkalloc02: Fix namespace issueSebastian Huber2015-04-271-3/+3
| | | | Avoid collision with <sys/param.h> defined PAGE_SIZE.
* sp13/system.h: Account for all message buffersJoel Sherrill2015-04-231-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.
* score: Delete Thread_queue_Control::stateSebastian Huber2015-04-231-1/+1
| | | | | Use a parameter for _Thread_queue_Enqueue() instead to reduce memory usage.
* score: Add _Thread_Get_interrupt_disable()Sebastian Huber2015-04-211-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.
* score: Add _ISR_lock_ISR_disable/enable()Sebastian Huber2015-04-201-0/+6
|
* sp13: Document message buffer usage and adjust configurationJoel Sherrill2015-04-171-5/+26
|
* sptests/sp52: Reduce clock tick intervalSebastian Huber2015-04-171-0/+2
| | | | This helps on slow simulators.
* score: Fix _TOD_Set_with_timestamp()Sebastian Huber2015-04-171-15/+20
| | | | | Update the current time before the watchdog adjust so that timer routines observe the new time.
* sptests/sp68: Avoid use of internal variablesSebastian Huber2015-04-161-10/+12
|
* score: Add _ISR_lock_Flash()Sebastian Huber2015-04-161-0/+2
|
* spcpuset01: Reduce output to reduce run-timeJoel Sherrill2015-04-144-4045/+12
|
* sp13: Update configuration to account for messages on fourth message queueJoel Sherrill2015-04-142-1/+6
|
* score: Add Watchdog_HeaderSebastian Huber2015-04-133-8/+8
| | | | | | | This type is intended to encapsulate all state to manage a watchdog chain. Update #2307.
* score: Add thread priority change handlerSebastian Huber2015-03-241-2/+2
| | | | | | | | | | 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.
* testsuites/sptests/sp54/init.c: Add cast to avoid warningJoel Sherrill2015-03-241-1/+1
|
* sptls03/init.c: Make type and constants uint32_t to avoid overflow warningsJoel Sherrill2015-03-241-4/+4
|
* sptls01/init.c: Use larger data types for valuesJoel Sherrill2015-03-241-5/+5
|
* sptests/spwatchdog/init.c: Avoid integer overflowJoel Sherrill2015-03-241-2/+8
|
* sptests/spedfsched02: Reduce stack space usage to fix on smaller targetsJoel Sherrill2015-03-242-3/+1
|
* sptests/spatomic01/init.c: Avoid integer overflowJoel Sherrill2015-03-241-8/+11
|
* sptests/sp34/changepri.c: Correct printf() warningJoel Sherrill2015-03-241-4/+5
|
* sptests/sp33/init.c: Correct printf() warningJoel Sherrill2015-03-241-2/+3
|
* sptests/sp20: Reduce memory requirementsJoel Sherrill2015-03-242-3/+1
| | | | | This was checked on sparc/sis. If this fails on other targets, then the task stack sizes needs to be reevaluated.
* sptests/sp13/system.h: Fine tune message buffer configuration to avoid ↵Joel Sherrill2015-03-241-13/+17
| | | | integer overflow
* sptests/sp12/pritask.c: Correct printf() warningJoel Sherrill2015-03-241-3/+4
|
* score: Simplify debug code and use _Assert()Sebastian Huber2015-03-221-1/+1
|
* sptests/spintrcritical23: Fix warningsSebastian Huber2015-03-211-8/+10
|
* Replace www.rtems.com with www.rtems.orgSebastian Huber2015-03-2037-37/+37
|
* score: Fix _Thread_Change_priority()Sebastian Huber2015-03-206-0/+225
| | | | | | | | | | 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.
* spcbssched03/tasks_periodic.c: Fixed now used before set warningJoel Sherrill2015-03-171-0/+1
|
* sptests misc: Update to not use deprecated methodsJoel Sherrill2015-03-176-18/+18
|
* tests misc: Disable deprecated method usage warning when intentionalJoel Sherrill2015-03-173-166/+185
| | | | | These tests intentionally use the deprecated method. Eventually this code in the sections can be deleted.
* tm07: Split some code into new spnotepad02.Joel Sherrill2015-03-1710-22/+116
| | | | | | Use of deprecated notepads in sp07 needs further work. Updates #2305.
* cpukit: deprecate notepadsGedare Bloom2015-03-103-1/+4
| | | | | | | | | | | | | | | Deprecate Classic API Notepads. Mark task_set/get_note() with the deprecated attribute, and also mark the notepads field. Replace disable with enable option for notepads in confdefs.h, and make notepads disabled by default. The previous option CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and will emit a compile-time warning. A new option CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn on notepads, but it also will emit a compile-time warning to indicate that notepads are deprecated. Closes #2265
* score: Implement fine-grained locking for eventsSebastian Huber2015-03-053-31/+49
| | | | | | | Use the ISR lock of the thread object to protect the event state and use the Giant lock only for the blocking operations. Update #2273.
* score: Update _Thread_Heir only if necessarySebastian Huber2015-03-052-0/+100
| | | | | | | | | | | | | | | | | | | | Previously, the _Thread_Heir was updated unconditionally in case a new heir was determined. The _Thread_Dispatch_necessary was only updated in case the executing thread was preemptible or an internal thread was unblocked. Change this to update the _Thread_Heir and _Thread_Dispatch_necessary only in case the currently selected heir thread is preemptible or a dispatch is forced. Move the schedule decision into the change priority operation and use the schedule operation only in rtems_task_mode() in case preemption is enabled or an ASR dispatch is necessary. This is a behaviour change. Previously, the RTEMS_NO_PREEMPT also prevented signal delivery in certain cases (not always). Now, signal delivery is no longer influenced by RTEMS_NO_PREEMPT. Since the currently selected heir thread is used to determine if a new heir is chosen, non-preemptible heir threads currently not executing now prevent a new heir. This may have an application impact, see change test tm04. Document this change in sp04. Update #2273.