summaryrefslogtreecommitdiffstats
path: root/bsps (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-24bsps/sparc: Add a symbol for each trap table entrySebastian Huber1-95/+264
This makes it easier to review start.o and set break points to trap table entries. This change was checked by inspecting the trap table in start.o with objdump. Update #4458.
2021-06-24bsp/atsam: Fix BSP_INTERRUPT_VECTOR_COUNTSebastian Huber1-1/+1
Fix an off by one error. Update #3269.
2021-06-24bsps/irq: Default BSP_INTERRUPT_VECTOR_COUNT == 0Sebastian Huber1-2/+5
Change the default value of BSP_INTERRUPT_VECTOR_COUNT so that no interrupt vectors are supported and all related directives return RTEMS_INVALID_ID. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_MAXSebastian Huber55-65/+0
This define is no longer used. Update #3269.
2021-06-24bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber15-21/+21
Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBERSebastian Huber2-4/+2
Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269.
2021-06-24bsps/irq: Add BSP_INTERRUPT_VECTOR_COUNTSebastian Huber55-0/+67
Assert BSP_INTERRUPT_VECTOR_MAX + 1 == BSP_INTERRUPT_VECTOR_COUNT. After building all BSPs with this patch, BSP_INTERRUPT_VECTOR_MAX can be removed and replaced by BSP_INTERRUPT_VECTOR_COUNT. The BSP_INTERRUPT_VECTOR_COUNT allows a default implementation which supports no interrupt vector at all. Using COUNT instead of MAX may avoid some interpretation issues, for example is the maximum value a valid vector number or not. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber60-106/+15
Remove BSP_INTERRUPT_VECTOR_MIN and unconditionally let interrupt vector numbers start with zero. The BSP_INTERRUPT_VECTOR_MIN == 0 invariant was tested by the previous commit and building all BSPs. Update #3269.
2021-06-24bsps/irq: Assert BSP_INTERRUPT_VECTOR_MIN == 0Sebastian Huber1-0/+4
After building all BSPs with this patch, this BSP-specific define can be removed to simplify the implementation. Update #3269.
2021-06-24bsp/generic_or1k: Remove incomplete IRQ supportSebastian Huber2-45/+1
Update #3269.
2021-06-24bsp/genmcf548x: Change BSP_INTERRUPT_VECTOR_MINSebastian Huber1-1/+9
This BSP uses a customized implementation of the interrupt extension API. It was the only BSP which defined BSP_INTERRUPT_VECTOR_MIN to a value other than zero. Define it to zero and use a custom bsp_interrupt_is_valid_vector() function instead. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGESebastian Huber3-40/+3
Remove the support for BSP_INTERRUPT_NO_HEAP_USAGE. This was only used by one BSP and provides no real benefit. Update #3269.
2021-06-24grlib: Register system console as /dev/consoleSebastian Huber1-1/+5
Close #4461.
2021-06-23bsps/powerpc, bsps/shared: Move remaining legacy networking header filesVijay Kumar Banerjee8-2359/+0
2021-06-23bsp/leon3: Fix compile errorSebastian Huber1-1/+1
Fix compile error with RTEMS_DRVMGR_STARTUP = True.
2021-06-21bsps/i386: Update calibration of TSC to be more accurateJan Sommer1-33/+38
Closes #4455
2021-06-17bsps/irq: Change license to BSD-2-ClauseSebastian Huber11-97/+242
Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-06-17grlib: Simplify apbuart_inbyte_nonblocking()Sebastian Huber1-5/+5
2021-06-17grlib: Fix apbuart_outbyte_polled() prototypeSebastian Huber2-2/+2
Callers usually want to output a character.
2021-06-17grlib: Add apbuart_outbyte_wait()Sebastian Huber6-24/+24
2021-06-17grlib: Remove NL -> CR in apbuart_outbyte_polled()Sebastian Huber6-12/+4
This is already done in rtems_putc().
2021-06-17bsps/leon3: Auto initialization for printk()Sebastian Huber1-28/+14
Get rid of the hack to output into the idle stack during the early system initialization. This fixes also a couple of test program failures which fail due to missing output.
2021-06-17grlib: Add ambapp_plb()Sebastian Huber19-63/+96
Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
2021-06-17grlib: Customizable allocation in ambapp_scan()Sebastian Huber2-26/+42
Make the memory allocations in ambapp_scan() customizable via the new struct ambapp_context parameter which generalizes the memory copy handler.
2021-06-10bsps/sparc: Simplify memory initializationSebastian Huber2-34/+39
Directly initialize the memory in the start sequence defined by start.S instead of using a system initialization handler. This avoids using the global variable rdb_start which used a memory location which was shared with _ERC32_MEC_Timer_Control_Mirror. This change makes it possible to use _Memory_Allocate() even before the system initialization is started. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-06-10bsps/sparc: Simplify stack initializationSebastian Huber1-28/+21
Initialize the stacks for all processors in one place. Do not rely on Per_CPU_Control::interrupt_stack_high and directly use the statically allocated interrupt stack area.
2021-06-10bsps/sparc: Unify stack initializationSebastian Huber1-8/+6
Initialize the stacks in start.S in one place and identical to _CPU_Context_Initialize().
2021-06-10bsps/sparc: Remove support to load data sectionSebastian Huber1-32/+4
Remove the support to load the data section and rely on the boot loader. The code is an artifact from the old erc32 days, when we would boot and execute from ROM and the .data had to be copied over to RAM. With leon1/2/3, this is not used anymore as a boot loader is made from the RAM image using a custom tool (mkprom). In SMP configurations, this support was also broken since LEON3_Boot_Cpu (in the data section due to the -1 initialization value) was used quite early in the start sequence. If the data copy is really necessary, then an application can still add this step as a very early system initialization step, since boot_card() and the system initialization loop does not use initialized read-write data (only read-only and BSS data). However, the SMP startup would still not work in this case. A boot loader is a better place to load the sections.
2021-06-10bsps/sparc: Remove unused __bsp_mem_init symbolSebastian Huber1-1/+1
2021-06-09aarch64: add qemu bsps for cortex-a72Gedare Bloom6-0/+355
The a72 BSPs are identical to the a53 BSPs just changing a53 to a72.
2021-06-07arm/fvp: Fix integer from pointer without a castSebastian Huber1-1/+1
Update #4202.
2021-05-28Change filesystem utime_h handler to utimens_hRyan Long1-1/+1
Also updated licenses. Closes #4400 Updates #3899
2021-05-27bsps/aarch64: Add MMU driver to relax alignmentKinsey Moore5-0/+518
Currently, the AArch64 BSPs have a hard time running on real hardware without building the toolchain and the bsps with -mstrict-align in multiple places. Configuring the MMU on these chips allows for unaligned memory accesses for non-device memory which avoids requiring strict alignment in the toolchain and in the BSPs themselves. In writing this driver, it was found that the synchronous exception handling code needed to be rewritten since it relied on clearing SCTLR_EL1 to avoid thread stack misalignments in RTEMS_DEBUG mode. This is now avoided by exactly preserving thread mode stack and flags and the new implementation is compatible with the draft information provided on the mailing list covering the Exception Management API.
2021-05-27bsps/aarch64: Advertise cache function supportKinsey Moore1-0/+10
Ensure that cache functions are flagged as usable by the generic cache implementation code.
2021-05-27bsps/aarch64: Align MVAs consistentlyKinsey Moore1-8/+5
This fixes a bug where addresses were not being aligned correctly. Addresses used in cache functions are now aligned consistently using RTEMS_ALIGN_DOWN.
2021-05-27bsps/aarch64: Break out system registersKinsey Moore1-180/+33
Break out system register definitions and accessors so that they're usable by other parts of RTEMS.
2021-05-25powerpc/.../sbrk.c: Do not reference errno.Joel Sherrill1-2/+12
Closes #4r37.
2021-05-25ppc-irq-legacy.c: Use rtems_malloc() instead of malloc().Joel Sherrill1-10/+11
Closes #4438.
2021-05-18score: Add _CPU_Context_switch_no_return()Sebastian Huber1-0/+2
The __builtin_unreachable() cannot be used with current GCC versions to tell the compiler that a function does not return to the caller, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 Add a no return variant of _CPU_Context_switch() to avoid generation of dead code in _Thread_Start_multitasking() if RTEMS was built with SMP support enabled.
2021-05-17bsps/imxrt: Enable DMA clockChristian Mauderer1-0/+3
The EDMA is intialized so make sure the the clock is initialized too. Update #4180
2021-05-17bsps/imxrt: Fix OCRAM, ITCM and DTCM sizesChristian Mauderer3-0/+33
The sizes are configurable via fuses or per software via some registers. At the moment the registers are not changed. Changing the registers destroys data stored in the RAM areas (like application code or data). So either the fuses or some bootloader should be used to set them before the application starts. This also adds an OCRAM only linker command file. Update #4180
2021-05-17bsps/imxrt: Add addresses and interrupts to dtsChristian Mauderer2-521/+1651
Add addresses and interrupts for most internal peripherals to the dts. The additional aliases make it possible for an application to easily access these informations. Update #4180
2021-05-17bsps/imxrt: Reduce devicetree sizeChristian Mauderer2-765/+472
Remove symbols that would be necessary for overlays and decrease padding that would be necessary for adding stuff during run-time. Update #4180
2021-05-17bsps/imxrt: Fix documentation errorChristian Mauderer1-1/+1
Update #4180
2021-05-17arm/altera-cyclone-v: Fix compile errorSebastian Huber1-2/+2
Update #4406.
2021-05-12rtems: Constify rtems_task_wake_when()Sebastian Huber2-2/+2
Add a parameter to _TOD_Validate() to disable the validation of the ticks member. There are two reasons for this change. Firstly, in rtems_task_wake_when() was a double check for time_buffer == NULL (one in rtems_task_wake_when() and one in _TOD_Validate()). Secondly, the ticks member is ignored by rtems_task_wake_when(). This was done with a write of zero to the ticks member and thus a modification of the user-provided structure. Now the structure is no longer modified. Using a mask parameter is quite efficient. You just have to load an immediate value and there are no additional branches in _TOD_Validate(). Close #4406.
2021-05-12_TOD_Validate(): Fix incorrect return codeFrank Kühndel2-7/+5
This patch fixes bug #4403. Directives * rtems_timer_fire_when() * rtems_timer_server_fire_when() * rtems_task_wake_when() are documented to return RTEMS_INVALID_ADDRESS when their time-of-day argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix the issue this patch changes _TOD_Validate() to return a status code instead of just true/false. Close #4403
2021-05-06bsps/shared/ofw: Fix coverity defectsG S Niteesh Babu1-1/+11
This patch adds asserts to fix coverity defects 1) CID 1474437 (Out-of-bounds access) 2) CID 1474436 (Out-of-bounds access) From manual inspection, out of bounds access cannot occur due to bounds checking but coverity fails to detect the checks. We are adding asserts as a secondary check.
2021-05-02bsps: Support RTEMS_NOINIT in linkcmdsSebastian Huber62-1/+256
Update #3866.
2021-04-29bsps/arm: ARMV7_CP15_START_WORKSPACE_ENTRY_INDEXSebastian Huber1-1/+1
Change the ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX value to be in line with the workspace entry in ARMV7_CP15_START_DEFAULT_SECTIONS. Close #4395.