From 568c7f99a528dd8b36c1fe36c5774806df0245ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=AD=E6=96=AD=E5=BB=B6=E8=BF=9F=E7=9A=84RTOS?= Date: Tue, 4 Aug 2026 17:52:48 +0000 Subject: [PATCH] update Port/port_x32/RISC-V32/port_rv32_HWS.S. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- Port/port_x32/RISC-V32/port_rv32_HWS.S | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Port/port_x32/RISC-V32/port_rv32_HWS.S b/Port/port_x32/RISC-V32/port_rv32_HWS.S index 0fc43749..c1d6bc28 100644 --- a/Port/port_x32/RISC-V32/port_rv32_HWS.S +++ b/Port/port_x32/RISC-V32/port_rv32_HWS.S @@ -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