You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
499 B
26 lines
499 B
/* Copyright 2021 Espressif Systems (Shanghai) PTE LTD |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
#include <offsets.h> |
|
#include <zephyr/toolchain.h> |
|
|
|
/* Exports */ |
|
GTEXT(__soc_is_irq) |
|
GTEXT(__soc_handle_irq) |
|
GTEXT(soc_intr_get_next_source) |
|
|
|
SECTION_FUNC(exception.other, __soc_is_irq) |
|
csrr a0, mcause |
|
srli a0, a0, 31 |
|
ret |
|
|
|
SECTION_FUNC(exception.other, __soc_handle_irq) |
|
addi sp, sp,-4 |
|
sw ra, 0x00(sp) |
|
la t1, soc_intr_get_next_source |
|
jalr ra, t1, 0 |
|
lw ra, 0x00(sp) |
|
addi sp, sp, 4 |
|
ret
|
|
|