summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* spintrcritical23: Fix unused variable warningsSebastian Huber2020-08-201-2/+2
|
* sp37: Fix unused variable warningsSebastian Huber2020-08-201-0/+2
|
* psxkey01: Fix configurationAschref Ben Thabet2020-08-201-1/+1
| | | | | | | Key_ID array must have the right size, it shall have a value greater than zero. Note: In Standard C and C++, zero-size array is not allowed..
* Fix -Wchar-subscripts warningsAschref Ben Thabet2020-08-202-6/+6
| | | | | | | The argument to the ctype functions must be an int and the value of the character must be representable as an unsigned char or equal to the value of the macro EOF. If the argument has any other value, the behavior is undefined.
* ada: Add missing attributesSebastian Huber2020-08-191-0/+9
|
* rtems: Use unique option valuesSebastian Huber2020-08-191-1/+1
| | | | | | | | | The RTEMS_BARRIER_AUTOMATIC_RELEASE and RTEMS_BINARY_SEMAPHORE options had the same value. In order to better detect a misuse of option values (for example using RTEMS_BINARY_SEMAPHORE for rtems_barrier_create()), the options should have unique values. Close #4054.
* libtest: Add T_push_plan() and T_pop_plan()Sebastian Huber2020-08-184-2/+44
| | | | Update #3199.
* libtest: Use a destructorSebastian Huber2020-08-181-10/+5
| | | | | | Do not set up a new test steps environment. Update #3199.
* libtest: Change T_step() and T_assert_step()Sebastian Huber2020-08-185-18/+34
| | | | | | | | | | | Normally, the expected test step must be a compile time constant. Allow variable expected test steps for the T_step() and T_assert_step(). This can be used for parameterized test loops with individual fixtures. Remove the ability to use custom failure messages due to some implementation constraints. Update #3199.
* libtest: Add fixture stepsSebastian Huber2020-08-185-49/+80
| | | | | | Support a new test plan for each nested fixture. Update #3199.
* libtest: Add T_check_steps()Sebastian Huber2020-08-181-18/+13
| | | | Update #3199.
* libtest: Use line buffer in T_check()Sebastian Huber2020-08-181-31/+86
| | | | Update #3199.
* libtest: Add T_puts()Sebastian Huber2020-08-182-0/+26
| | | | Update #3199.
* libtest: Add T_do_is_runner()Sebastian Huber2020-08-181-30/+34
| | | | Update #3199.
* libtest: Add output buffer drain and fillSebastian Huber2020-08-181-25/+35
| | | | Update #3199.
* libtest: Change fixture scope methodSebastian Huber2020-08-183-67/+86
| | | | | | | Return the produced character count. There is no need for a NUL termination. Update #3199.
* rtems/printer.h Fix build warnings -Wclass-memaccessAschref Ben Thabet2020-08-171-1/+5
|
* powerpc/io: The eieio() function clashes with FreeBSD. Change.Chris Johns2020-08-121-4/+4
|
* posix: Only check shm_unlink obj_err if necessaryKinsey Moore2020-08-111-22/+23
| | | | | | | | | | In the nominal case checked by spsysinit01, obj_err is unmodified if _POSIX_Shm_Get_by_name returns non-NULL. In the case of shm_unlink, this means an uninitialized value is passed into the switch and it appears tests using it were passing by virtue of the stack having the right value on it in most cases. This now checks obj_err only if _POSIX_Shm_Get_by_name returns NULL. Close #4016
* spintrcritical23: Restore runner prioritySebastian Huber2020-08-111-0/+8
|
* libtests/dl10: Delete unused functionsAschref Ben Thabet2020-08-111-22/+0
|
* libtest: Add T_thread_switch_record()Sebastian Huber2020-08-114-0/+277
| | | | | | | | Add support to record thread switch events. This can be used to check that a blocking operation results in the expected sequence of thread switches. Update #3199.
* libtest: ConstifySebastian Huber2020-08-101-1/+1
| | | | Update #3199.
* Doxyfile: Change version to 6.0.0Sebastian Huber2020-08-101-1/+1
| | | | Update #4020.
* shell: Only clear std handles when the shell task exitsChris Johns2020-08-081-4/+22
| | | | | Clearing the std file handles when the main loop exited crashes telnetd as it reuses its session threads.
* libtest: Improve T_check_task_contextSebastian Huber2020-08-071-0/+46
| | | | Update #3199.
* Document application configuration optionsSebastian Huber2020-08-071-0/+4191
| | | | | | | | | Add a new directory for Doxygen-specific documentation content. Add a Doxygen only header file containing documentation of the application configuration options. The header file is generated from specification items. Close #3994.
* Remove accidentally committed fileSebastian Huber2020-08-062-3737/+0
|
* libtest: Fix T_interrupt_test() in SMP configsSebastian Huber2020-08-062-0/+99
| | | | Update #3199.
* psxhdrs/strncpy/stpncpy: Fix string turncation warningAschref Ben Thabet2020-08-052-8/+6
| | | | | | Since we need to test the strncpy function, using a character array with a fixed array size in this case in place of character pointer can avoid the string turncation warning.
* dev/sc16is752: Fix declarationSebastian Huber2020-08-051-1/+1
|
* arm/atsam: Make interrupt server configurableSebastian Huber2020-08-052-39/+75
| | | | | | | | | | | | | The external UART over SPI device SC16IS752 uses the interrupt server for interrupt processing. The interrupt server is also heavily used by libbsd. The interrupt processing for the SC16IS752 is time critical and doesn't work if network traffic is processed at the same priority. With #4033 custom interrupt servers are available. Change atsam_sc16is752_spi_create() to support user-defined interrupt servers. Introduced atsam_sc16is752_spi_config to cut down the argument count of this function. Close #4039.
* smpschededf02: Document reset() functionSebastian Huber2020-08-041-1/+13
|
* termios: Make rtems_termios_ttyMutex privateSebastian Huber2020-08-043-4/+3
| | | | This mutex is used to maintain termios internal data structures.
* score: Use flexible-array member for C99 and laterSebastian Huber2020-08-041-1/+5
| | | | | | | This addresses compiler warnings like this: warning: array subscript 0 is outside the bounds of an interior zero-length array 'abc[0]' [-Wzero-length-bounds]
* dosfs: Fix memory leak on failed mounts.Christian Mauderer2020-08-043-0/+13
| | | | | | | | | | | | | | | | | | | | Currently if mount fails, a converter isn't destroyed. We have to take care of two cases: 1. The user doesn't provide a converter. In this case mounting a dosfs creates a default converter. This patch makes sure that the converter is destroyed again if mount failes for this case. 2. The user provides a converter. In this case it's not sure that the dosfs specific routines are reached because mount can fail before that. Therefore the user has to destroy the converter himself again. This patch adds a documentation for that and implements it in the media server. Closes #4042.
* bsps/beagle: Remove some debug output from I2C.Christian Mauderer2020-08-031-1/+1
|
* dev/spi-memdrv: Fix use of uninit mem_param_ptrSebastian Huber2020-08-031-12/+9
|
* rtems: Add rtems_interrupt_server_create()Sebastian Huber2020-08-032-130/+378
| | | | | | | | | | | | | | | | | | Add rtems_interrupt_server_destroy(). Before this patch, the only way to create interrupt servers was rtems_interrupt_server_initialize(). This function creates the default interrupt server and in SMP configurations additional interrupt servers for the additional processors. The interrupt server is heavily used by libbsd. This includes the epoch based reclamation which performs time consuming resource and memory deallocation work. This does not work well with time critical services, for example an UART over SPI or I2C. One approach to address this problem is to allow the application to create custom interrupt servers with the right priority and task properties. The interrupt server API accounted for this, however, it was not implemented before this patch. Close #4034.
* bsps/fdt: Make sure data is cache alignedChristian Mauderer2020-07-311-3/+5
| | | | | The cache of the fdt blob is flushed after copy. Therefore it should be aligned.
* bsp/imx: Use GPIOs for SPI CSChristian Mauderer2020-07-311-7/+85
| | | | | | | | | | | | | The chip select lines of the iMX SPI module doesn't work well for a generic API like the one RTEMS uses. The existing solution only worked in some special cases and had odd bugs when trying transfers of different sizes (like deselecting between each byte for lengths that are not dividable by 4). With this patch the same approach like on FreeBSD or Linux is used: Treat the CS lines as GPIOs. Update 3869
* bsp/imx: Add a GPIO driverChristian Mauderer2020-07-317-1/+562
| | | | Update 3869
* bsps/lm32: Use shared <bsp/irq.h>Sebastian Huber2020-07-314-10/+0
| | | | | | | | Having a duplicate header with the shared includes is a build system inconsistency. You may use one header file to build the libraries and another one is installed (overwriting the other). Update #3269.
* psxhdrs/strncat: Fix string truncation warningAschref Ben Thabet2020-07-301-1/+1
|
* i386: Fix possible race condition on first context restoreJan Sommer2020-07-291-1/+1
| | | | | | | | | | | | Make sure that the esp is restored before the eflags register. When the init task is initially restored, system interrupts are activated when the eflags register is loaded. If the esp register still points to an address in the interrupt stack area (from early system initlization) the ISR might overwrite its own stack. Closes #4031
* spmisc01: Include missing header fileSebastian Huber2020-07-241-0/+2
| | | | Update #4032.
* malloc: Make deferred free support optionalSebastian Huber2020-07-243-39/+46
| | | | | | | | | | | | | | | | | | | | Only include the deferred free support if free() is actually used by the application. The free() implementation in RTEMS supports that allocated memory is freed in interrupt context. Since the heap is protected by a mutex, the frees issued in interrupt context cannot immediately be freed to the heap, instead they are placed on a deferred free list. This list is emptied by the core allocation function rtems_heap_allocate_aligned_with_boundary(). This adds a dependency to free() in rtems_heap_allocate_aligned_with_boundary(). In order to better support applications which only allocate memory and never free it, this dependency should be avoided. Provide a weak default implementation of _Malloc_Process_deferred_frees() for rtems_heap_allocate_aligned_with_boundary(). In the free() module provide the strong implementation. Close #4032.
* score: Add RTEMS_WEAKSebastian Huber2020-07-245-1/+120
| | | | Update #4032.
* spintrcritical_support: RemoveSebastian Huber2020-07-232-224/+0
| | | | This test support was replaced by T_interrupt_test() is no longer used.
* spintrcritical24: Use T_interrupt_test()Sebastian Huber2020-07-233-39/+119
|