| /* |
| * Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io> |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /** |
| * @file |
| * @brief ARM Cortex-R interrupt initialization |
| */ |
| |
| #include <arch/cpu.h> |
| #include <drivers/interrupt_controller/gic.h> |
| |
| /** |
| * |
| * @brief Initialize interrupts |
| * |
| * @return N/A |
| */ |
| void z_arm_interrupt_init(void) |
| { |
| /* |
| * Initialise interrupt controller. |
| */ |
| #if !defined(CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER) |
| /* Initialise the Generic Interrupt Controller (GIC) driver */ |
| arm_gic_init(); |
| #else |
| /* Invoke SoC-specific interrupt controller initialisation */ |
| z_soc_irq_init(); |
| #endif |
| } |