| * Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk> |
| * SPDX-License-Identifier: Apache-2.0 |
| #include <zephyr/toolchain.h> |
| * SOC-specific function to handle pending IRQ number generating the interrupt. |
| * Exception number is given as parameter via register a0. |
| SECTION_FUNC(exception.other, __soc_handle_irq) |
| * The MIP CSR on the NEORV32 is read-only and can thus not be used for |
| * clearing a pending IRQ. Instead we disable the IRQ in the MIE CSR and |
| * re-enable it (if it was enabled when clearing). |