trap_gcc.S 281 B

123456789101112
  1. #include "cpuport.h"
  2. .globl rt_hw_do_after_save_above
  3. .type rt_hw_do_after_save_above,@function
  4. rt_hw_do_after_save_above:
  5. addi sp, sp, -4
  6. STORE ra, 0 * REGBYTES(sp)
  7. csrr a0, mscratch
  8. call trap_entry
  9. LOAD ra, 0 * REGBYTES(sp)
  10. addi sp, sp, 4
  11. ret