mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-09-24 22:40:32 +08:00
update Port/Cortex-M/port_cmx_s.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -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溢出 */
|
||||
|
||||
Reference in New Issue
Block a user