[VENTUS][RISCV][feat] Add exception handler to stop spike in crt0.s
This commit is contained in:
parent
5f776bde21
commit
724033f20a
|
@ -65,6 +65,8 @@ _start:
|
||||||
la t5, BUFFER_SIZE
|
la t5, BUFFER_SIZE
|
||||||
sw t2, 0(t4)
|
sw t2, 0(t4)
|
||||||
sw t3, 0(t5)
|
sw t3, 0(t5)
|
||||||
|
la t6, spike_end # exception to stop spike
|
||||||
|
csrw mtvec, t6
|
||||||
jalr t1 # call kernel program
|
jalr t1 # call kernel program
|
||||||
|
|
||||||
# call exit routine
|
# call exit routine
|
||||||
|
|
Loading…
Reference in New Issue