mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-08-17 08:42:13 +08:00
update Port/port_x32/RISC-V32/port_rv32_HWS.S.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/* PendSV软中断 */
|
||||
/* PendSV 软中断 */
|
||||
|
||||
.global OS_PendSV_Handler
|
||||
.align 2
|
||||
@@ -250,9 +250,8 @@ _task_switch_:
|
||||
addi sp, sp, 32 * MCUCFG_REGBYTES
|
||||
#endif
|
||||
|
||||
sw zero, (tp) // 内核解锁(退出服务层临界区)
|
||||
////reent point 1
|
||||
csrr tp, mscratch
|
||||
////reent point 2
|
||||
jr tp
|
||||
/* unlock & jump */
|
||||
sw zero, (tp) // 内核解锁(退出服务层临界区)
|
||||
csrr tp, mscratch // break point 1
|
||||
jr tp // break point 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user