summaryrefslogtreecommitdiffstats
path: root/bsps/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Support RTEMS_NOINIT in linkcmdsSebastian Huber2021-05-021-0/+3
| | | | Update #3866.
* bsps: Remove networking driversVijay Kumar Banerjee2021-04-076-478/+0
| | | | Update #3850
* leon: restart and load timer counter at initializationDaniel Hellstrom2021-03-111-1/+4
| | | | | | | | | | | | Without this smp05 and smpthreadlife01 tests may fail depending on how the boot loader initialized the GPTIMER. Before the time counter stopped counting when reaching zero, but tests could work since it could take 2^32 us before stopping. The timer driver will potentially overwrite this, but it happens later due to the initialization order having RTEMS_SYSINIT_CPU_COUNTER very early.
* leon3: avoid dependency on apbuart/timer driverDaniel Hellstrom2021-03-112-12/+28
| | | | | | | Moves drvmgr_drivers[] from amba.c to a separate file in order to avoid the dependecy on APBUART/GPTIMER drivers. This has an effect when user configured not to use timer or uart in their project.
* gr_cpci_gr740.c: Unchecked return value from library (CID #1437630)Ryan Long2021-03-051-1/+3
| | | | | | CID 1437630: Unchecked return value from library in gr_cpci_gr740_init1(). Closes #4290
* gr_leon4_n2x.c: Fix Unchecked return value from library (CID #1399767)Ryan Long2021-03-051-1/+3
| | | | | | CID 1399767: Unchecked return value error from library in gr_cpci_leon4_n2x_init1(). Closes #4285
* bsp/leon3: Improve printk() supportSebastian Huber2021-02-011-40/+52
| | | | | | | | Use the idle stack to buffer early uses of printk(). Print the buffered characters during initialization when the UART is available and before the idle stack is used normally. This fix relates to a Coverity issue (PW.SET_BUT_NOT_USED).
* bsp/leon3: Fix incompatible function typesSebastian Huber2021-02-011-4/+6
| | | | This fix relates to a Coverity issue (PW.INCOMPATIBLE_PARAM).
* bsp/leon3: Fix bsp_fatal_extension) indentationSebastian Huber2021-02-011-15/+13
| | | | | | Remove superfluous include. Fix comment formatting. This fix relates to a Coverity issue (NESTING_INDENT_MISMATCH).
* bsp/leon3: Simplify bsp_interrupt_is_valid_vector()Sebastian Huber2021-01-281-5/+5
| | | | | | | There is not need to check that vector >= BSP_INTERRUPT_VECTOR_MIN since BSP_INTERRUPT_VECTOR_MIN is zero and vector is unsigned. This fix relates to CID 1399742 (NO_EFFECT).
* bsps: Replace bsp_specs with an empty fileSebastian Huber2021-01-283-27/+0
| | | | | | | This fixes an issue with the latest tool chain which adds the default linker script in the endfile specification. Update #3250.
* sparc: Add SPARC_INTERRUPT_SOURCE_TO_TRAP()Sebastian Huber2020-11-063-3/+3
| | | | Update #4171.
* sparc: Add SPARC_INTERRUPT_TRAP_TO_SOURCE()Sebastian Huber2020-11-066-6/+6
| | | | Update #4171.
* sparc: Add SPARC_IS_INTERRUPT_TRAP()Sebastian Huber2020-11-066-27/+12
| | | | Update #4171.
* bsp/leon3: Updat due to API changesSebastian Huber2020-10-261-1/+1
|
* grlib: Add ambapp_common_info to derived typesSebastian Huber2020-10-162-2/+2
| | | | This avoids a cast in DEV_TO_COMMON().
* rtems: Improve RTEMS_NO_RETURN attributeSebastian Huber2020-10-101-1/+1
| | | | | | | | | | | Provide RTEMS_NO_RETURN also in case RTEMS_DEBUG is defined to prevent errors like this: error: no return statement in function returning non-void [-Werror=return-type] Use C11 and C++11 standard means to declare a no-return function. Close #4122.
* grlib: Add and use irqmp_has_timestamp()Sebastian Huber2020-10-103-10/+3
| | | | | | | Replace leon3_irqmp_has_timestamp() with irqmp_has_timestamp() and move it to grlib.h. Close #4128.
* bsps: Always install IPI in SMP configsSebastian Huber2020-08-312-14/+6
| | | | | | | The inter-processor interrupt (IPI) may be used to process per-CPU jobs. See for example the blocked handler in T_interrupt_test(). Update #3199.
* bsps/leon3: Remove superfluous includesSebastian Huber2020-08-202-8/+2
|
* testsuite: Add expected-fail to erc32, leon2, and leon3 BSPsChris Johns2020-05-064-0/+28
| | | | Updates #2962
* imfs: Replace devfs with an IMFS specializationSebastian Huber2020-03-091-3/+0
| | | | | | | | | | | | | | | | Add a simplified path evaluation function IMFS_eval_path_devfs() for a device only IMFS configuration. The code size can be further reduced by the application if it disables the support for legacy IO drivers via: #define CONFIGURE_IMFS_DISABLE_MKNOD #define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES. Update #3894. Update #3898.
* Use RTEMS_SYSINIT_ORDER_LAST_BUT_5Sebastian Huber2020-02-042-2/+2
| | | | | | | | Use RTEMS_SYSINIT_ORDER_LAST_BUT_5 instead of RTEMS_SYSINIT_ORDER_LAST to allow applications and support functions to place system initialization handlers behind the standard handlers. Update #3838.
* bsps: Rework work area initializationSebastian Huber2020-02-041-11/+25
| | | | | | | | | | | | | | | | | | | | The work area initialization was done by the BSP through bsp_work_area_initialize(). This approach predated the system initialization through the system initialization linker set. The workspace and C program heap were unconditionally initialized. The aim is to support RTEMS application configurations which do not need the workspace and C program heap. In these configurations, the workspace and C prgram heap should not get initialized. Change all bsp_work_area_initialize() to implement _Memory_Get() instead. Move the dirty memory, sbrk(), per-CPU data, workspace, and malloc() heap initialization into separate system initialization steps. This makes it also easier to test the individual initialization steps. This change adds a dependency to _Heap_Extend() to all BSPs. This dependency will be removed in a follow up change. Update #3838.
* bsps: Remove uses of BSP_GET_WORK_AREA_DEBUGSebastian Huber2020-02-041-28/+0
| | | | | | | | | The code covered by BSP_GET_WORK_AREA_DEBUG was basically dead code since there was no normal way to activate it (e.g. via a BSP configuration option). A follow up patch will bring back this feature through a CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION configuration option. Update #3838.
* bsp/erc32: Improve pseudo-SMP supportSebastian Huber2019-10-011-0/+84
| | | | | Add support for _SMP_Send_message() to the own processor. This is required by the smpmulticast01 test program.
* rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber2019-04-093-4/+4
| | | | | | | | | | | Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732.
* rtems: Add rtems_scheduler_get_processor()Sebastian Huber2019-04-091-1/+1
| | | | | | | | | | | Add rtems_scheduler_get_processor() as a replacement for rtems_get_current_processor(). The rtems_get_current_processor() is a bit orphaned. Adopt it by the Scheduler Manager. This is in line with the glibc sched_getcpu() function. Deprecate rtems_get_current_processor(). Update #3731.
* erc32/start/setvec.c: Fix warningJoel Sherrill2019-03-251-3/+8
|
* bsps: Adjust shared Doxygen groupsSebastian Huber2019-03-083-9/+9
| | | | Update #3706.
* bsps: Adjust bsp.h Doxygen groupsSebastian Huber2019-03-0819-42/+62
| | | | Update #3706.
* bsps: Adjust architecture Doxygen groupsSebastian Huber2019-03-044-11/+11
| | | | | | | | | | - Use CamelCase as it is not used in our C code. Enables simple search and replace. - Prefix with "RTEMS" to aid deployment and integration. It aids searching and sorting. Update #3706.
* grlib: make apbuart driver independent of bspJiri Gaisler2019-01-221-1/+0
| | | | Update #3678.
* grlib: Move source filesSebastian Huber2019-01-2266-49217/+0
| | | | Update #3678.
* grlib: Move header filesSebastian Huber2019-01-22139-10214/+240
| | | | Update #3678.
* bsps/sparc: Fix warningsSebastian Huber2018-12-2110-34/+65
|
* bsps/sparc: Fix typoSebastian Huber2018-12-211-1/+1
|
* bsps/sparc: Add grlib_malloc(), grlib_calloc()Sebastian Huber2018-12-2138-140/+176
| | | | This avoids a dependency to errno in device driver code.
* Simplify _CPU_Counter_difference()Sebastian Huber2018-12-075-213/+182
| | | | | | | | | | | | | | In order to simplify the use of CPU counter values it is beneficial to have monotonic increasing values within the range of the CPU counter ticks data type, e.g. 32-bit unsigned integer. This eases the use of CPU counter timestamps in external tools which do not know the details of the CPU counter hardware. The CPU counter is the fastest way to get a time on an RTEMS system. Such a CPU counter may be also used as the timecounter. Use it on SPARC for this purpose to simplify the clock drivers. Update #3456.
* bsp/leon2: Move printk() supportSebastian Huber2018-12-053-88/+31
| | | | | | | | | Avoid assert() in console_inbyte_nonblocking(). Do not poll forever in bsp_in_char(). This allows the caller to decide what to do if no character is available. This entangles some dependencies and fixes a spconfig02 test failure.
* Spelling and grammar fixes in source code comments (GCI 2018)Marçal Comajoan Cara2018-12-041-1/+1
|
* bsp/leon3: Fix CPU counter frequencySebastian Huber2018-12-041-1/+1
|
* bsps/sparc: Add and use <grlib_impl.h>Sebastian Huber2018-11-2724-422/+105
| | | | Reduce copy and paste.
* score: Rename interrupt stack symbolsSebastian Huber2018-11-081-2/+2
| | | | | | | | | | | | | Rename * _Configuration_Interrupt_stack_area_begin in _ISR_Stack_area_begin, * _Configuration_Interrupt_stack_area_end in _ISR_Stack_area_end, and * _Configuration_Interrupt_stack_size in _ISR_Stack_size. Move definitions to <rtems/score/isr.h>. The new names are considerable shorter and in the right namespace. Update #3459.
* leon: do not use -mfix-{device} with ClangDaniel Hellstrom2018-10-092-2/+28
| | | | | | | | | Clang do not support -mfix-gr712rc, -mfix-ut700 and -mfix-ut699. Therefore we adjust the CPU_CFLAGS to remove these when compiling with Clang. Instead use GR712RC: -mcpu=gr712rc GR740: -mcpu=gr740 UT699/UT700: Not currently supported by clang, use LEON3 BSP.
* leon, spwtdp: Initial driver commitJavier Jalle2018-10-094-0/+1344
|
* Use rtems_task_exit()Sebastian Huber2018-10-021-1/+1
| | | | | Update #3530. Update #3533.
* leon: remove warning missing string.hDaniel Hellstrom2018-09-201-0/+1
|
* leon, grspw_pkt: support CCSDS/ISO16 data CRCMartin Aberg2018-09-202-2/+17
| | | | | | When the CCSDS/CCITT CRC-16 and 16-bit ISO-checksum logic is available in GRSPW2, the DCRCT field is used to determine how to generate the CRC/checksum code. grspw_hw_sup has been extended with the field ccsds_crc
* leon,grspw_pkt: protect TX descriptor from bad input (hdrlen)Daniel Hellstrom2018-09-201-1/+2
|