save 48bytes when no need to switch task in interrupt handler
This commit is contained in:
@@ -54,7 +54,6 @@ ASM_SOURCES =
|
||||
|
||||
ASM_SOURCES_S = \
|
||||
$(TOP_DIR)/arch/risc-v/rv32i/gcc/port_s.S \
|
||||
$(TOP_DIR)/arch/risc-v/spike/gcc/riscv_port_s.S \
|
||||
start.S
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -111,7 +111,7 @@
|
||||
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/demo/Inc}""/>
|
||||
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/demo/TencentOS_tiny/arch/risc-v/rv32i}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/demo/TencentOS_tiny/arch/risc-v/spike}""/>
|
||||
|
||||
</option>
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
.extern rv32_trap_entry
|
||||
.extern rv32_exception_entry
|
||||
|
||||
.align 2
|
||||
.section .text.entry
|
||||
@@ -8,7 +8,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
|
||||
|
Reference in New Issue
Block a user