summaryrefslogtreecommitdiffstats
path: root/bsps/shared/irq (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-07-26rtems: Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPTSebastian Huber1-7/+5
Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT as the fatal source for spurious interrupts. Use the interrupt vector number of the spurious interrupt for the fatal code. Update #3269.
2021-07-26rtems: Add rtems_interrupt_vector_enable()Sebastian Huber1-0/+59
Add rtems_interrupt_vector_disable(). Update #3269.
2021-07-26bsps/irq: Move handler iterate to separate fileSebastian Huber2-82/+100
Update #3269.
2021-07-26bsps/irq: Canonicalize get/set affinity errorsSebastian Huber1-2/+10
Bring the error conditions and status in line with rtems_task_get_affinity() and rtems_task_set_affinity(). Update #3269.
2021-07-26bsps/irq: Move get/set affinity to separate fileSebastian Huber2-52/+90
Update #3269.
2021-06-24bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber2-2/+2
Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBERSebastian Huber1-1/+1
Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber1-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.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGESebastian Huber1-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.
2021-06-17bsps/irq: Change license to BSD-2-ClauseSebastian Huber8-71/+185
Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2020-11-24rtems: Improve rtems_interrupt_server_create()Sebastian Huber1-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().
2020-10-19bsps: Fix rtems_interrupt_server_delete()Sebastian Huber1-0/+2
The ISR lock must be destroyed to prevent memory corruption if RTEMS_PROFILING and RTEMS_SMP is enabled. Close #4158.
2020-08-03rtems: Add rtems_interrupt_server_create()Sebastian Huber1-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.
2020-01-03bsps/irq: fix resource leak in irq-server.cGedare Bloom1-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.
2019-09-20rtems: Add rtems_interrupt_server_entry_move()Sebastian Huber1-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.
2019-05-16bsps: Always build generic interrupt supportSebastian Huber1-0/+51
This makes it possible to write tests for the generic interrupt controller support. Update #3269.
2019-04-09rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber1-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.
2019-02-07bsps/irq: Fix interrupt server init (SMP)Sebastian Huber1-4/+7
2018-11-12bsps/irq: Use rtems_malloc()Sebastian Huber1-3/+8
2018-08-03bsps: Fix the generic IRQ supportSebastian Huber2-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.
2018-06-05bsps: Avoid malloc() in generic IRQ supportSebastian Huber1-2/+3
Use rtems_heap_allocate_aligned_with_boundary() instead of malloc() to avoid a dependency on errno.
2018-04-09bsps: Move generic IRQ support to bspsSebastian Huber6-0/+1779
This patch is a part of the BSP source reorganization. Update #3285.