summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Rename watchdog variantsSebastian Huber2017-10-172-3/+3
| | | | | | | | | | | Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
* spthreadq01/init.c: Fix unused variable warningsJoel Sherrill2017-10-121-3/+0
|
* Fix spprofiling01 overriding recipe warningJoel Sherrill2017-10-112-2/+2
| | | | Closes #3084.
* score: Remove CPU_set_ControlSebastian Huber2017-10-111-13/+0
| | | | | | Use Processor_mask instead. Update #2514.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-053-54/+0
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-052-20/+0
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-052-35/+0
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-051-16/+0
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Implement self-contained POSIX semaphoresSebastian Huber2017-10-051-18/+0
| | | | | | | | | | | | | | For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
* libio: Add hold/drop iop referenceSebastian Huber2017-09-156-0/+189
| | | | | | | Check iop reference count in close() and return -1 with errno set to EBUSY in case the file descriptor is still in use. Update #3132.
* sp25/task1.c: Fix printf() format warningsJoel Sherrill2017-08-271-2/+2
|
* spstkalloc02/init.c: Fix printf() format warningsJoel Sherrill2017-08-271-6/+6
|
* sparc: Add lazy floating point switchSebastian Huber2017-07-253-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The SPARC ABI is a bit special with respect to the floating point context. The complete floating point context is volatile. Thus, from an ABI point of view nothing needs to be saved and restored during a context switch. Instead the floating point context must be saved and restored during interrupt processing. Historically, the deferred floating point switch was used for SPARC and the complete floating point context is saved and restored during a context switch to the new floating point unit owner. This is a bit dangerous since post-switch actions (e.g. signal handlers) and context switch extensions may silently corrupt the floating point context. The floating point unit is disabled for interrupt handlers. Thus, in case an interrupt handler uses the floating point unit then this will result in a trap (INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT). In uniprocessor configurations, a lazy floating point context switch is used. In case an active floating point thread is interrupted (PSR[EF] == 1) and a thread dispatch is carried out, then this thread is registered as the floating point owner. When a floating point owner is present during a context switch, the floating point unit is disabled for the heir thread (PSR[EF] == 0). The floating point disabled trap checks that the use of the floating point unit is allowed and saves/restores the floating point context on demand. Update #3077.
* INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNITSebastian Huber2017-07-2511-2/+248
| | | | | | Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT. Update #3077.
* sptests/sptls02: Use standard test IOSebastian Huber2017-07-191-1/+0
| | | | Update #3076.
* sptests/spcache01: Use standard test IOSebastian Huber2017-07-191-1/+0
| | | | Update #3076.
* tests: Use floating point taskSebastian Huber2017-07-192-1/+3
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* tests: Use floating point taskSebastian Huber2017-07-183-0/+6
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* rtems: Add rtems_scheduler_ident_by_processor_setSebastian Huber2017-07-111-0/+19
| | | | Update #3070.
* rtems: Add rtems_scheduler_ident_by_processor()Sebastian Huber2017-07-111-0/+12
| | | | Update #3069.
* tests: Move busy loop to test supportSebastian Huber2017-06-291-86/+10
| | | | Update #3056.
* spcpuset01: Update due to CPU_CMP() changesSebastian Huber2017-06-091-1/+1
| | | | Close #3036.
* spcpuset01: Update due to CPU_NAND_S() changesSebastian Huber2017-06-071-3/+3
| | | | Close #3032.
* Fix CPU_COPY() usageSebastian Huber2017-06-072-2/+2
| | | | | | | | The original CPU_COPY() support of Newlib <sys/cpuset.h> had the parameters in the wrong order. This is fixed in Newlib since 2017-05-22. Update #3023.
* Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2017-06-072-0/+2
| | | | Update #2833.
* confdefs.h: Add SMP enabled field to configurationSebastian Huber2017-05-1613-2/+24
| | | | | | | | | | | Do not use the processor count to determine if SMP is enabled. Instead use a dedicated configuration option. Enable SMP by default in SMP configurations. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
* sptests/spprivenv01: Use default task modeSebastian Huber2017-05-121-1/+1
| | | | There is no need to run the task with interrupts disabled.
* confdefs.h: Use SMP scheduler only if necessarySebastian Huber2017-05-121-0/+2
| | | | Update #3001.
* confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber2017-05-1110-0/+20
| | | | | | | | | | | Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
* spcache01: Instruction cache invalidate workaroundSebastian Huber2017-04-051-4/+41
| | | | | On some systems, the instruction cache invalidation is not allowed by the MMU.
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | errors. - Add a top level test configuration file for test states that are common to all BSPs. This saves adding a test configuration (tcfg) file for every BSP. - Add the test states 'user-input' and 'benchmark'. This lets 'rtems-test' stop the test rather than waiting for a timeout or letting a benchmark run without the user asking for it to run. - Implement rtems-test-check in Python to make it faster. The shell script had grown to a point it was noticably slowing the build down. - Fix the configure.ac and Makefile.am files for a number of the test directories. The files are difficiult to keep in sync with the number of tests and mistakes can happen such as tests being left out of the build. The test fsrofs01 is an example. Also a there was a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be used. - Fix the test fsrofs01 so it compiles. Closes #2963.
* spextensions01: Fix extension create orderSebastian Huber2017-02-211-11/+11
| | | | Update #2692.
* spqreslib: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* spcbssched02: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* Rename CONFIGURE_SMP_MAXIMUM_PROCESSORSSebastian Huber2017-02-142-2/+2
| | | | | | | Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS since the SMP part is superfluous. Update #2894.
* sppagesize: Include missing header fileSebastian Huber2017-02-141-0/+1
|
* Prefix confdefs.h internal def with an underscoreSebastian Huber2017-02-031-2/+2
| | | | Close #2895.
* Remove CONFIGURE_SMP_APPLICATIONSebastian Huber2017-02-022-4/+0
| | | | | | Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
* sprmsched01/spedfsched04: ReviseKuan-Hsun Chen2017-01-316-153/+92
| | | | | | | | Instead of using the target time and console driver, both tests now use assertions and rtems_rate_monotonic_get_status() to verify the count of postponed jobs. The setting of spedfsched04 is slightly changed. Close #2795.
* rtems: Fix _Rate_monotonic_Renew_deadline()Kuan-Hsun Chen2017-01-306-1/+171
| | | | | | | | | | | | Prepare a precondition to prevent the potential integer overflow. Remove one redundant parameter in _Rate_monotonic_Renew_deadline(). sptests/sprmsched02: Create A test case for checking the overflow condition of postponed_jobs in rtems_rate_monotonic_period_status. Update #2885.
* score: Fix user extensions orderSebastian Huber2017-01-262-36/+32
| | | | | | | | | | | Use forward and reverse order for initial and dynamic extensions. This is the behaviour documented in the C Users Guide. Change thread terminate order to backward to be in line with the thread delete order. Change fatal error order to forward to ensure that initial extensions are called first due the peculiar execution context of fatal error extensions, see _Terminate() documentation. Update #2692.
* Remove rtems_rate_monotonic_postponed_job_count()Kuan-Hsun Chen2017-01-263-4/+15
| | | | | | | | | | | Add a variable named "count" in rtems_rate_monotonic_period_status structure. Revise rtems_rate_monotonic_get_status() for the postponed job count. sptests/sp69: Add in the verification of the postponed job count for rtems_rate_monotonic_get_status(). Update #2795.
* sptests/spedfsched04: Merge and fixSebastian Huber2017-01-254-193/+113
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* sptests/sprmsched01: Merge and fixSebastian Huber2017-01-244-196/+112
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* classic: adjust names of RM postponed job functionsGedare Bloom2017-01-132-6/+6
| | | | closes #2795
* sptests: EDF scheduler overrun handlingKuan-Hsun Chen2017-01-138-1/+316
| | | | Update #2795.
* sptests: rate monotonic scheduler overrun handlingKuan-Hsun Chen2017-01-138-0/+349
| | | | Update #2795.
* posix: shared memory supportGedare Bloom2017-01-131-0/+17
| | | | | | | | | Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
* configure: Remove HAVE_STRUCT__THREAD_QUEUE_QUEUESebastian Huber2017-01-132-5/+0
|
* configure: Remove HAVE_THREADS_H supportSebastian Huber2017-01-132-5/+0
|