1/* 2 * Copyright (c) 2021-2023 HPMicro 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7#include "cpuport.h" 8 9 .globl rt_hw_do_after_save_above 10 .type rt_hw_do_after_save_above,@function 11rt_hw_do_after_save_above: 12 addi sp, sp, -4 13 STORE ra, 0 * REGBYTES(sp) 14 15 csrr t1, mcause 16 andi t1, t1, 0x3FF 17 /* get ISR */ 18 la t2, trap_entry 19 jalr t2 20 21 LOAD ra, 0 * REGBYTES(sp) 22 addi sp, sp, 4 23 ret 24