summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* tests: Fix warningsSebastian Huber2015-03-052-3/+3
|
* score: ISR lock C/C++ compatiblity issueSebastian Huber2015-03-041-2/+2
| | | | | | | | | | Empty structures are implementation-defined in C. GCC gives them a size of zero. In C++ empty structures have a non-zero size. Add ISR_LOCK_DEFINE() to define ISR locks for structures used by C and C++. Update #2273.
* sptests/sp76: Check that the right task executesSebastian Huber2015-02-261-8/+11
|
* sptests: Add missing test extensionSebastian Huber2015-02-193-0/+6
|
* score: Make <rtems/score/atomic.h> availableSebastian Huber2015-02-196-0/+321
| | | | | | | | Make <rtems/score/atomic.h> available for all RTEMS configurations. Use inline functions instead of macros. Use ISR disable/enable on uni-processor configurations to ensure atomicity. Update #2273.
* IMFS: Add fine grained configurationSebastian Huber2015-02-122-4/+0
| | | | | | | | | | | | | | | | | | Remove miniIMFS. Statically initialize the root IMFS. Add configuration options to disable individual features of the root IMFS, e.g. o CONFIGURE_IMFS_DISABLE_CHOWN, o CONFIGURE_IMFS_DISABLE_FCHMOD, o CONFIGURE_IMFS_DISABLE_LINK, o CONFIGURE_IMFS_DISABLE_MKNOD, o CONFIGURE_IMFS_DISABLE_MOUNT, o CONFIGURE_IMFS_DISABLE_READLINK, o CONFIGURE_IMFS_DISABLE_RENAME, o CONFIGURE_IMFS_DISABLE_RMNOD, o CONFIGURE_IMFS_DISABLE_SYMLINK, o CONFIGURE_IMFS_DISABLE_UNMOUNT, and o CONFIGURE_IMFS_DISABLE_UTIME.
* Filesystem: Simplify FIFO and pipe configurationSebastian Huber2015-02-094-6/+0
|
* Filesystem: Statically initialize rtems_libio_iopsSebastian Huber2015-02-046-70/+1
|
* powerpc: Delete _CPU_IRQ_infoSebastian Huber2015-01-091-2/+1
|
* Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber2014-12-1617-30/+0
| | | | This define was superfluous, undocumented and used inconsistently.
* Update bug report URLSebastian Huber2014-12-051-1/+1
|
* sptests: Add get_one_tick_busy_value()Sebastian Huber2014-12-031-29/+38
| | | | | Extract this function from interrupt_critical_section_test_support_initialize().
* spcpuset01: fix test commentsDaniel Hellstrom2014-12-023-70/+70
|
* rtems: Add rtems_cache_coherent_allocate()Sebastian Huber2014-11-273-0/+51
| | | | Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area().
* rtems: Move rtems_cache_aligned_malloc()Sebastian Huber2014-11-253-0/+33
| | | | | | Make sure also the size is cache aligned since otherwise we may have some overlap with the next allocation block. A cache invalidate on this area would be fatal.
* sptest/spcache01: New test casesSebastian Huber2014-11-251-0/+4
|
* Delete or rename MIN/MAX macros and definesSebastian Huber2014-11-212-6/+5
| | | | Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
* testsuites: Avoid clock driverSebastian Huber2014-10-141-1/+1
|
* score: Rework global constructionSebastian Huber2014-10-137-1/+101
| | | | | | Ensure that the global construction is performed in the context of the first initialization thread. On SMP this was not guaranteed in the previous implementation.
* sptests/spintrcritical22: New testSebastian Huber2014-09-196-0/+176
|
* sptests/sp07: Minimize thread dispatch latencySebastian Huber2014-09-1611-157/+71
| | | | | | Do not use sprintf() in thread dispatch critical sections to avoid corruption of profiling samples. Update test to reflect thread the life cycle changes.
* sptests/spintrcritical_support: Optimize busy loopSebastian Huber2014-09-121-3/+4
|
* sptests/spintrcritical10: Avoid undefined memorySebastian Huber2014-09-121-0/+3
|
* sptests/spfatal07: Fix end of test messageSebastian Huber2014-09-101-1/+1
|
* sptests/sp39: Convert to sptests/spintrcritical21Sebastian Huber2014-09-108-105/+83
| | | | | Use interrupt critical section test support. Do not print end of test message in case of failure.
* tests: Rework interrupt critical testsSebastian Huber2014-09-1013-267/+485
| | | | | | | | | This avoids test durations of more than one hour on fast targets, since fast targets can count a lot during one clock tick period, so the minor loop iteration count was quite high. Estimate now the test body duration to iterate only through the interesting time window. Add and use interrupt_critical_section_test().
* sptests/spcontext01: Fix warningSebastian Huber2014-09-081-1/+1
|