From a036aabfc53c4ad09cc0bcbc9c0769a9a9d7a348 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: Sat, 4 Jul 2026 13:13:08 +0000 Subject: [PATCH] update Port/Cortex-M/port_cmx_s.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- Port/Cortex-M/port_cmx_s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Port/Cortex-M/port_cmx_s.c b/Port/Cortex-M/port_cmx_s.c index ba135e06..405ee698 100644 --- a/Port/Cortex-M/port_cmx_s.c +++ b/Port/Cortex-M/port_cmx_s.c @@ -181,12 +181,12 @@ __LOOP mov rx, r1 cmp rx, r1 bne __LOOP dmb - strh r3, [r1, #2] cmp r3, #0 beq __RESrx ldr rx, =mPendSV_FIFO_X b __OVERFLOW -__RESrx mov rx, r12 +__RESrx strh r3, [r1, #2] + mov rx, r12 #undef rx #endif /* FIFO溢出 */ @@ -377,12 +377,12 @@ void mPendSV_FIFOLoader(void *sv) "cmp "sDefStr(rx)", r1 \n" "bne __LOOP \n" "dmb \n" - "strh r3, [r1, #2] \n" "cmp r3, #0 \n" "beq __RESrx \n" "ldr "sDefStr(rx)", =mPendSV_FIFO_X \n" "b __OVERFLOW \n" -"__RESrx: mov "sDefStr(rx)", r12 \n" +"__RESrx: strh r3, [r1, #2] \n" + "mov "sDefStr(rx)", r12 \n" #undef rx #endif /* FIFO溢出 */