save 48bytes when no need to switch task in interrupt handler

This commit is contained in:
acevest
2019-10-06 15:51:34 +08:00
parent e5e905e9bb
commit b147d060fb
7 changed files with 72 additions and 198 deletions

View File

@@ -1,3 +1,4 @@
.extern rv32_exception_entry
.align 2
.section .text.entry
.globl _start
@@ -6,7 +7,7 @@ _start:
csrc mstatus, 0x00000008
csrw mie, 0
la t0, rv32_trap_entry
la t0, rv32_exception_entry
csrw mtvec, t0
la sp, _stack_top