mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-24 00:21:05 +08:00
[libcpu][risc-v] fix the rt_thread_switch_interrupt_flag issue
This commit is contained in:
@@ -69,9 +69,9 @@ trap_entry:
|
||||
|
||||
/* need to switch new thread */
|
||||
la s0, rt_thread_switch_interrupt_flag
|
||||
LOAD s2, 0(s0)
|
||||
lw s2, 0(s0)
|
||||
beqz s2, spurious_interrupt
|
||||
STORE zero, 0(s0)
|
||||
sw zero, 0(s0)
|
||||
|
||||
csrr a0, mepc
|
||||
STORE a0, 0 * REGBYTES(sp)
|
||||
|
||||
Reference in New Issue
Block a user