summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Avoid some deadlocks in _Once()Sebastian Huber2019-02-182-3/+20
| | | | | | | | Recursive usage of the same pthread_once_t results now in a deadlock. Previously, an error of EINVAL was returned. This usage scenario is invalid according to the POSIX pthread_once() specification. Close #3334.
* build: Do not install test programsSebastian Huber2019-01-301-3/+1
|
* score: Remove unused _ISR_lock_Flash()Sebastian Huber2019-01-181-2/+0
|
* score: Improve debug support for ISR locksSebastian Huber2019-01-181-0/+12
| | | | Ensure that interrupts are disabled while acquiring an ISR lock.
* build: Remove bogus spqreslib_LDADDSebastian Huber2019-01-141-1/+0
|
* build: Add missing $(LDADD) for dependenciesSebastian Huber2019-01-141-2/+2
|
* Adjust interrupt mode tests for some CPU portsSebastian Huber2019-01-092-4/+29
| | | | | | | In case the robust thread dispatch is enabled by the CPU port, then the interrupt level must not be changed through the task mode. Update #3000.
* tests: Remove bogus RTEMS_INTERRUPT_LEVEL(31)Sebastian Huber2019-01-095-5/+5
| | | | It is unnecessary to run these test cases with interrupts disabled.
* spcxx01: Add test caseSebastian Huber2018-12-211-0/+10
|
* Add aligned_alloc() and memalign()Sebastian Huber2018-12-215-0/+99
| | | | | | Ensure that the C++17 aligned new operator works. Close #3666.
* score: Fix per-CPU data allocationSebastian Huber2018-12-182-1/+15
| | | | | | | | | | | Allocate the per-CPU data for secondary processors directly from the heap areas before heap initialization and not via _Workspace_Allocate_aligned(). This avoids dependency on the workspace allocator. It fixes also a problem on some platforms (e.g. QorIQ) where at this early point in the system initialization the top of the RAM is used by low-level startup code on secondary processors (boot pages). Update #3507.
* score: Static Objects_Information initializationSebastian Huber2018-12-149-105/+324
| | | | | | | | | | | Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
* score: Remove Objects_Information::maximumSebastian Huber2018-12-071-34/+38
| | | | | | | This information is already present in Objects_Information::maximum_id. Add and use _Objects_Get_maximum_index(). Update #3621.
* score: Optimize object lookupSebastian Huber2018-12-071-20/+218
| | | | | | | | | | | | | | | | Use the maximum ID for the ID to object translation. Using the maximum ID gets rid of an additional load from the object information in _Objects_Get(). In addition, object lookups fail for every ID in case the object information is cleared to zero. This makes it a bit more robust during system startup (see new tests in spconfig02). The local table no longer needs a NULL pointer entry at array index zero. Adjust all the object iteration loops accordingly. Remove Objects_Information::minimum_id since it contains only redundant information. Add _Objects_Get_minimum_id() to get the minimum ID. Update #3621.
* rtems: Add rtems_scheduler_get_maximum_priority()Sebastian Huber2018-12-071-1/+25
| | | | Update #3636.
* tests: Fix rtems_test_spin_until_next_tick()Sebastian Huber2018-12-071-0/+2
| | | | | | This bug surfaced due to sporadic failures in sptimecounter02. Adjust rtems_test_spin_for_ticks() to include the partial tick in the argument value.
* Capitalize Rtems to RTEMSMarçal Comajoan Cara2018-12-041-1/+1
|
* Convert CPU counter ticks to/from sbintime_tSebastian Huber2018-12-031-2/+13
| | | | | The sbintime_t is an efficient time format. Add the ability to convert CPU counter ticks to/from sbintime_t.
* rtems: Remove Modes_ControlSebastian Huber2018-11-122-4/+2
| | | | | | | Use rtems_mode directly. This is in line with rtems_attribute and rtems_option. Update #3598.
* m32c: Remove this targetSebastian Huber2018-11-122-26/+11
| | | | Update #3599.
* spconfig02: Check object methods in default configSebastian Huber2018-11-075-0/+328
| | | | | | | | | | | Ensure that the creation of Classic API objects fails with the expected status code in the default configuration. Ensure that the deletion of Classic API objects fails with the expected status code in the default configuration if the identifier is invalid. Ensure that only the expected objects are present in the default configuration via rtems_object_get_classic_name().
* posix: Enable more sptests test cases by defaultSebastian Huber2018-10-294-96/+35
| | | | Update #2514.
* config: Modify CONFIGURE_INTERRUPT_STACK_SIZESebastian Huber2018-10-241-0/+32
| | | | | | | Use CPU_STACK_MINIMUM_SIZE instead of CONFIGURE_MINIMUM_TASK_STACK_SIZE to set the default value. Close #3480.
* build: Remove local.amSebastian Huber2018-10-101-1/+0
|
* tests: Use rtems_task_exit()Sebastian Huber2018-10-0582-167/+97
| | | | Update #3533.
* spthreadlife01: A task exit must not returnSebastian Huber2018-10-051-3/+3
| | | | Update #3533.
* rtems: Add rtems_task_exit()Sebastian Huber2018-10-011-3/+27
| | | | Update #3533.
* spthreadlife01: Remove superfluous restart caseSebastian Huber2018-10-011-3/+0
| | | | Update #3243.
* Remove INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALLSebastian Huber2018-09-215-58/+0
| | | | | | | | | | | | The configured interrupt stack size (CONFIGURE_INTERRUPT_STACK_SIZE) is checked against the minimum task stack size. The minium tasks task stack size is also a configuration option (CONFIGURE_MINIMUM_TASK_STACK_SIZE). So, this check does not really help in case of configuration errors. In addition, the interrupt stack is also re-used as the initialization stack in most BSPs. It is probably better to use a stack checker to detect problems. Update #3459.
* score: Fix PER_CPU_DATA_GET_BY_OFFSET()Sebastian Huber2018-09-101-0/+10
| | | | | | | Add uniprocessor version for PER_CPU_DATA_GET_BY_OFFSET(). Fix warnings in uniprocessor configurations. Update #3507.
* score: Add flexible per-CPU dataSebastian Huber2018-09-107-0/+371
| | | | Update #3507.
* sptests/spconfig01: New testSebastian Huber2018-09-065-0/+150
| | | | Close #3435.
* spglobalcon01: LLVM optimization makes variable i always 1Daniel Hellstrom2018-08-241-2/+2
| | | | | Declare i volatile to avoid compiler optimization putting i into data section with initialization value 1.
* tests: Remove CONFIGURE_MAXIMUM_DRIVERSSebastian Huber2018-08-073-3/+0
| | | | This configuration is superfluous in these tests.
* score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE()Sebastian Huber2018-07-251-0/+25
| | | | | | | Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch prediction hints. Close #3475.
* sptests/sp20: Remove unused variableSebastian Huber2018-07-241-1/+0
|
* score: Add _CPU_Instruction_illegal()Sebastian Huber2018-07-231-34/+6
| | | | | | | | On some architectures/simulators it is difficult to provoke an exception with misaligned or illegal data loads. Use an illegal instruction instead. Update #3433.
* score: Add _CPU_Instruction_no_operation()Sebastian Huber2018-07-201-5/+2
| | | | | This helps to reduce the use of architecture-specific defines throughout the code base.
* score: Move context validation declarationsSebastian Huber2018-07-201-1/+3
| | | | | | | The context validation support functions _CPU_Context_validate() and _CPU_Context_volatile_clobber() are used only by one test program (spcontext01). Move the function declarations to the CPU port implementation header file.
* linux: Add rbtree_postorder_for_each_entry_safe()Sebastian Huber2018-07-161-0/+22
| | | | Update #3465.
* score: Add postorder tree iteration supportSebastian Huber2018-07-161-0/+182
| | | | Update #3465.
* Rework initialization and interrupt stack supportSebastian Huber2018-06-272-37/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Statically initialize the interrupt stack area (_Configuration_Interrupt_stack_area_begin, _Configuration_Interrupt_stack_area_end, and _Configuration_Interrupt_stack_size) via <rtems/confdefs.h>. Place the interrupt stack area in a special section ".rtemsstack.interrupt". Let BSPs define the optimal placement of this section in their linker command files (e.g. in a fast on-chip memory). This change makes makes the CPU_HAS_SOFTWARE_INTERRUPT_STACK and CPU_HAS_HARDWARE_INTERRUPT_STACK CPU port defines superfluous, since the low level initialization code has all information available via global symbols. This change makes the CPU_ALLOCATE_INTERRUPT_STACK CPU port define superfluous, since the interrupt stacks are allocated by confdefs.h for all architectures. There is no need for BSP-specific linker command file magic (except the section placement), see previous ARM linker command file as a bad example. Remove _CPU_Install_interrupt_stack(). Initialize the hardware interrupt stack in _CPU_Initialize() if necessary (e.g. m68k_install_interrupt_stack()). The optional _CPU_Interrupt_stack_setup() is still useful to customize the registration of the interrupt stack area in the per-CPU information. The initialization stack can reuse the interrupt stack, since * interrupts are disabled during the sequential system initialization, and * the boot_card() function does not return. This stack resuse saves memory. Changes per architecture: arm: * Mostly replace the linker symbol based configuration of stacks with the standard <rtems/confdefs.h> configuration via CONFIGURE_INTERRUPT_STACK_SIZE. The size of the FIQ, ABT and UND mode stack is still defined via linker symbols. These modes are rarely used in applications and the default values provided by the BSP should be sufficient in most cases. * Remove the bsp_processor_count linker symbol hack used for the SMP support. This is possible since the interrupt stack area is now allocated by the linker and not allocated from the heap. This makes some configure.ac stuff obsolete. Remove the now superfluous BSP variants altcycv_devkit_smp and realview_pbx_a9_qemu_smp. bfin: * Remove unused magic linker command file allocation of initialization stack. Maybe a previous linker command file copy and paste problem? In the start.S the initialization stack is set to a hard coded value. lm32, m32c, mips, nios2, riscv, sh, v850: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. m68k: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. powerpc: * Remove magic linker command file allocation of initialization stack. Reuse interrupt stack for initialization stack. * Used dedicated memory region (REGION_RTEMSSTACK) for the interrupt stack on BSPs using the shared linkcmds.base (replacement for REGION_RWEXTRA). sparc: * Remove the hard coded initialization stack. Use the interrupt stack for the initialization stack on the boot processor. This saves 16KiB of RAM. Update #3459.
* spmisc01: Add test cases for basedefs.h stuffSebastian Huber2018-06-212-0/+225
|
* score: Macros to declare and define global symbolsSebastian Huber2018-06-215-0/+74
| | | | | | Add RTEMS_DEFINE_GLOBAL_SYMBOL() and add RTEMS_DECLARE_GLOBAL_SYMBOL(). Update #3459.
* Add RTEMS_SYSINIT_CPU_COUNTERSebastian Huber2018-06-151-1/+17
| | | | | | Add initialization step for the CPU counter support. Update #3456.
* Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREESebastian Huber2018-06-057-1/+59
| | | | | | | | An invalid heap usage such as a double free is usually a fatal error since this indicates a use after free. Replace the use of printk() in free() with a fatal error. Update #3437.
* Update rtems_fatal_source_text()Sebastian Huber2018-06-052-2/+3
| | | | | | Add RTEMS_FATAL_SOURCE_PANIC to rtems_fatal_source_text(). Update #3244.
* sptests: Remove CONFIGURE_MILLISECONDS_PER_TICKSebastian Huber2018-05-282-4/+0
| | | | This configuration define is not supported.
* spcpucounter01: Enable floating-point outputSebastian Huber2018-05-141-0/+1
|
* tests: Remove configure feature checksSebastian Huber2018-05-021-3/+0
| | | | Update #3409.