summaryrefslogtreecommitdiffstats
path: root/bsps/shared/irq (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber2021-06-242-2/+2
| | | | | | Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
* bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBERSebastian Huber2021-06-241-1/+1
| | | | | | Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269.
* bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber2021-06-241-1/+1
| | | | | | | | | | 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.
* bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGESebastian Huber2021-06-241-31/+3
| | | | | | | Remove the support for BSP_INTERRUPT_NO_HEAP_USAGE. This was only used by one BSP and provides no real benefit. Update #3269.
* bsps/irq: Change license to BSD-2-ClauseSebastian Huber2021-06-178-71/+185
| | | | | | | Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* rtems: Improve rtems_interrupt_server_create()Sebastian Huber2020-11-241-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().
* bsps: Fix rtems_interrupt_server_delete()Sebastian Huber2020-10-191-0/+2
| | | | | | | The ISR lock must be destroyed to prevent memory corruption if RTEMS_PROFILING and RTEMS_SMP is enabled. Close #4158.
* rtems: Add rtems_interrupt_server_create()Sebastian Huber2020-08-031-116/+249
| | | | | | | | | | | | | | | | | | 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/irq: fix resource leak in irq-server.cGedare Bloom2020-01-031-0/+1
| | | | | | Resource leak identified by Coverity (CID 1456675). The value of instances is leaked in case some but not all irq servers are created. It should be stored in bsp_interrupt_server_instances.
* rtems: Add rtems_interrupt_server_entry_move()Sebastian Huber2019-09-201-0/+17
| | | | | | | | | The use case for this function is the libbsd. In FreeBSD, the interrupt setup and binding to a processor is done in two steps. Message based interrupts like PCIe MSI and MSI-X interrupts can be implemented through interrupt server entries. They are setup at the default interrupt server and may optionally move to an interrupt server bound to a specific processor.
* bsps: Always build generic interrupt supportSebastian Huber2019-05-161-0/+51
| | | | | | | This makes it possible to write tests for the generic interrupt controller support. Update #3269.
* rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber2019-04-091-2/+2
| | | | | | | | | | | 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.
* bsps/irq: Fix interrupt server init (SMP)Sebastian Huber2019-02-071-4/+7
|
* bsps/irq: Use rtems_malloc()Sebastian Huber2018-11-121-3/+8
|
* bsps: Fix the generic IRQ supportSebastian Huber2018-08-032-16/+42
| | | | | | | | | The genmcf548x partly uses is own implementation of the interrupt extension API for libbsd support. This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Avoid malloc() in generic IRQ supportSebastian Huber2018-06-051-2/+3
| | | | | Use rtems_heap_allocate_aligned_with_boundary() instead of malloc() to avoid a dependency on errno.
* bsps: Move generic IRQ support to bspsSebastian Huber2018-04-096-0/+1779
This patch is a part of the BSP source reorganization. Update #3285.