summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* leon,grcan: split out GRCAN non-FD specific support in separate fileDaniel Hellstrom2021-03-073-405/+436
| | | | Update #4307.
* leon,grcanfd: split out GRCANFD specific support in separate fileDaniel Hellstrom2021-03-074-627/+687
| | | | Update #4307.
* leon,grcan: added support for GRCANFDDaniel Hellstrom2021-03-072-19/+692
| | | | | | | | | | | | | The new GRCAN_FD IP supports CAN FD standard and is mostly backwards compatible with GRCAN SW interface. The GRCAN driver have been extended to support the GRCANFD IP using the same driver. Additional functions have been added that uses a new CAN FD frame format and read/write/baud-rate functions that supports both GRCANFD and GRCAN. To keep the SW API fully backwards compatible with GRCAN, the old functions remain. Update #4307.
* grlib: added 64-bit read no-cache functionDaniel Hellstrom2021-03-071-0/+10
| | | | Update #4307.
* leon,occan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-071-110/+41
| | | | Update #4306.
* leon,grcan: use common CAN baud-rate calculation routineDaniel Hellstrom2021-03-071-114/+20
| | | | Update #4306.
* leon,can: introduce common CAN baud-rate calculation functionDaniel Hellstrom2021-03-076-1/+244
| | | | | | | Reimplemented the baud-rate algorithm from scratch to cope with GRCAN, GRCANFD and OC_CAN devices. Update #4306.
* grlib,ambapp: added new IP core IDsDaniel Hellstrom2021-03-072-1/+39
| | | | Update #4305.
* leon,grspw: fix for SET_PACKET_SIZEDaniel Hellstrom2021-03-071-0/+7
| | | | | | | | | | | | When the DMA table has been allocated dynamically, the IOCTL_SET_PACKETSIZE will trigger an issue where pDev->rx and pDev->tx are not updated with the new DMA tables base address. Instead the old pointers are used. There is no point in reallocting the DMA tables because there is no configuration option to it. Therefore the DMA tables allocation is moved to a separate function never called from SET_PACKETSIZE. Update #4304.
* leon,gr1553b: Only align allocated memory. Verify alignment of memory.Arvid Bjorkengren2021-03-073-83/+147
| | | | Update #4303.
* leon,gr1553b: set codec versionArvid Bjorkengren2021-03-071-0/+4
| | | | | | | This is enables the updated codec for GR740 and is backwards compatible with all other versions of the IP. Updates #4275.
* leon,gr1553rt: Fixed spinlock unlockArvid Bjorkengren2021-03-071-1/+1
| | | | Update #4274.
* leon,gr1553rt: Fixed memory leakArvid Bjorkengren2021-03-071-5/+11
| | | | Update #4274.
* sparc: Remove sequences that the B2BST scan script warns aboutDaniel Cederman2021-03-072-3/+6
| | | | Update #4154.
* powerpc/beatnik/net: Remove unused filesVijay Kumar Banerjee2021-03-033-503/+0
| | | | Close #4293
* powerpc/motorola_power: Place any common data in the .bss sectionChris Johns2021-02-271-1/+7
| | | | | | | - It seems the compiler how defaults to -fcommon and this means some uninitialised data is ignored. Closes #4266
* powerpc/motorola_power: Link all text sections into the executable imageChris Johns2021-02-241-1/+1
| | | | | | | | - The change to building all code with code and data sections means we have a section per function. Make sure all functions are placed in the text section. Closes #4266
* Update motorola_power to irq-generic interrupt managementChris Johns2021-02-168-57/+286
| | | | | | | | | | | | | | - Add support to the BSP to enable irq-generic management - Update the powerpc shared irq code to support irq-generic. This is an opt in option for existing powerpc bsps. This change should be simpler now - Fix a number of issues in ISA IRQ controller handling by porting fixes from the i386 (PC) BSP Closes #4247 Closes #4248
* bsp/motorola_powerp: Print RTEMS_VERSION from the bootloaderChris Johns2021-02-101-1/+3
| | | | Close #4234
* powerpc/shared: ISA bus bridge fails to enable the openpic irqChris Johns2021-02-082-2/+2
| | | | | | | | | | - The call to enable the openpic irq for the ISA bridge fails because the IRQ used is offset by the ISA bus signals and the openpic call expects an IRQ relative to its signals. - Add the MVME 2600/2700 to the list of boards with an ISA bridge. Closes #4233
* score: Add barrier thread queue operationsSebastian Huber2021-02-063-4/+40
| | | | | | | This fixes a missing decrement of the number of waiting threads during a barrier wait timeout. Close #4232.
* score: Make FIFO thread queue ops publicSebastian Huber2021-02-063-8/+144
| | | | Update #4232.
* score: Constify Thread_queue_First_operationSebastian Huber2021-02-062-12/+13
| | | | Update #4232.
* Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()Sebastian Huber2021-01-251-1/+1
| | | | | | Add "extern" similar to RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(). Close #4224.
* bsp/imx: Fix system counter init for imx6Christian Mauderer2021-01-211-1/+60
| | | | | | | | | For i.MX7 U-Boot initializes the system counter. On i.MX6 Barebox is often used which doesn't initialize the counter. With this patch, we try to auto-detect whether the counter is initialized or not and do the initialization ourself if necessary. Closes #4220
* bsps/arm: Fix MMU configurationSebastian Huber2020-12-152-0/+8
| | | | Update #4185.
* bsps/arm: Fix MMU small pages supportJan Sommer2020-12-111-1/+1
| | | | | | - For small tables only round to the next 4kiB instead of 1MiB Close #4185.
* rtems: Improve rtems_interrupt_server_create()Sebastian Huber2020-11-251-13/+17
| | | | | | | | Also start interrupt server tasks on processors which do not have a scheduler. Applications may dynamically manage processors using rtems_scheduler_remove_processor() and rtems_scheduler_add_processor(). Close #4190.
* bsps: Fix rtems_interrupt_server_delete()Sebastian Huber2020-11-251-0/+2
| | | | | | | The ISR lock must be destroyed to prevent memory corruption if RTEMS_PROFILING and RTEMS_SMP is enabled. Close #4189.
* bsp/atsam: Fix XDMAD statusChristian Mauderer2020-11-122-1/+63
| | | | | | | | | | | | In "bsp/atsam: Simplify XDMAD_Handler()" (5f813694f68cee) the interrupt callback has been made unconditional. That allowed to avoid some special deadlock situations in error cases. But it removed part of the XDMAD status handling. This patch adds the ability to update the XDMAD status from the callback if that is necessary for the driver. Fixes #4172
* confdefs: Add extern C guards to libpci.hJan Sommer2020-10-301-0/+8
| | | | Closes #4169
* libfs/rfs: Check search bit map end on last bitChris Johns2020-10-171-2/+15
| | | | | | | - Do not write past the last location of the search bit map whe nit is being created. Closes #4149
* bsps/arm: Add workaround for Errata 794072Sebastian Huber2020-10-161-0/+16
| | | | | | | | Add a workaround for Cortex-A9 Errata 845369: A short loop including a DMB instruction might cause a denial of service on another which executes a CP15 broadcast operation. Close #4114.
* bsps/arm: Workaround for Errata 845369Sebastian Huber2020-10-162-0/+47
| | | | | | | Add a workaround for Cortex-A9 Errata 845369: Under Very Rare Timing Circumstances Transition into Streaming Mode Might Create Data Corruption. Update #4114.
* i386/score: fix assembly mnemonicGedare Bloom2020-10-021-1/+1
| | | | | | | This is a backport for assembler error observed in 6. Although the assembler error does not appear in 5, the backport was requested. Closes #4083.
* rtems-bsps: add ability to print architecture/bsp listRyan Long2020-09-291-3/+40
| | | | Closes #4099.
* Fixing bug in line editing of the shell with CTRL-U.Frank Kühndel2020-09-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a tiny bug in the command line editing of the RTEMS shell. Typing CTRL-U in the shell should remove all characters left of the cursor. After pressing CTRL-U, the current implementation does wrongly place the cursor at the end of the line instead at its beginning. To reproduce the bug, start the shell and type 'abc123' (no <RETURN>): > ~/src/rtems $ qemu-system-arm -net none -nographic -M realview-pbx-a9 \ -m 256M -kernel build/arm/realview_pbx_a9_qemu/testsuites/libtests/dl10.exe > *** BEGIN OF TEST libdl (RTL) 10 *** > *** TEST VERSION: 6.0.0.d9bdf166644f612dd628fe4951c12c6f8e94ba5f > *** TEST STATE: USER_INPUT > *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP > *** TEST TOOLS: 10.2.1 20200904 \ (RTEMS 6, RSB 31f936a7b74d60bda609a9960c6e1a705ba54974, Newlib a0d7982) > RTL (libdl) commands: dl, rtl > > RTEMS Shell on /dev/foobar. Use 'help' to list commands. > SHLL [/] # abc123 Then move the cursor onto the '1' by hitting three times the <ARROW-LEFT> key. Next type <CTRL>-U: > SHLL [/] # 123 Note that the cursor is at the end of the line (after '3') instead of correctly at the beginning (on the '1'), now. Continuing typing 'echo ' incorrectly results in the output: > SHLL [/] # 123echo 123 The patch changes this behavior so that the cursor in the second last step will be on the '1' and typing 'echo ' will then correctly reflected as: > SHLL [/] # echo 123 Close #4096.
* bsps/pc386: Add missing license headerJan Sommer2020-09-231-0/+26
| | | | Closes #4902.
* bsp/xilinx-zynq: Flush TX-Buffer before initializing uart5.1Jan Sommer2020-08-221-0/+2
| | | | | Closes #4055 Closes #4056
* confdefs: Fix cyclic dependencySebastian Huber2020-08-212-12/+8
| | | | Close #4060.
* powerpc/io: The eieio() function clashes with FreeBSD. Change.Chris Johns2020-08-121-4/+4
| | | | Closes #4021
* 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
* 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. Closes #3859
* 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 #4038.
* 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 #4041.
* 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 #4033.
* 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 #4030
* bsps/pc386: Fix IPI for non-consecutive APICIDsJan Sommer2020-07-161-6/+10
| | | | | | - properly use the cpu <-> apic maps for IPIs Closes #4028.
* rtems: Remove RTEMS_MP_NOT_CONFIGURED errorSebastian Huber2020-06-1816-113/+18
| | | | | | | | | | | | | | Some objects can be created with a local or global scope in a multiprocessing network. In non-multiprocessing configurations setting the scope to local or global had no effect since such a system can be viewed as a multiprocessing network with just one node. One and all nodes is the same in such a network. However, if multiprocessing was configured, creation of a global object in a single node network resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error condition for symmetry to the non-multiprocessing setup. This is in line with the task affinity behaviour in SMP systems. Update #4005.
* i386/pc: Initialise the printk serial port on first useChris Johns2020-06-182-12/+37
|