/* * Copyright (c) 2020 ITE Corporation. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ /* * common interrupt management code for riscv SOCs supporting the riscv * privileged architecture specification */ #include #include #include #include #include /* exports */ GTEXT(__soc_handle_irq) /* * SOC-specific function to handle pending IRQ number generating the interrupt. * Exception number is given as parameter via register a0. * Jump to get_irq() function directly and return to caller by its * ret instruction. */ SECTION_FUNC(exception.other, __soc_handle_irq) j get_irq