1/*
2 * Copyright (c) 2020 ITE Corporation. All Rights Reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/*
8 * common interrupt management code for riscv SOCs supporting the riscv
9 * privileged architecture specification
10 */
11#include <zephyr/kernel_structs.h>
12#include <zephyr/offsets.h>
13#include <zephyr/toolchain.h>
14#include <zephyr/linker/sections.h>
15#include <soc.h>
16
17/* exports */
18GTEXT(__soc_handle_irq)
19
20/*
21 * SOC-specific function to handle pending IRQ number generating the interrupt.
22 * Exception number is given as parameter via register a0.
23 * Jump to get_irq() function directly and return to caller by its
24 * ret instruction.
25 */
26SECTION_FUNC(exception.other, __soc_handle_irq)
27	j get_irq
28