From b684472571b6c31c6e12f6ace18ddcd800c9d36a Mon Sep 17 00:00:00 2001 From: LTree Date: Thu, 5 Sep 2024 01:50:39 +0000 Subject: [PATCH] =?UTF-8?q?update=20rt-thread-version/rt-thread-standard/p?= =?UTF-8?q?rogramming-manual/porting/porting.md.=20=E4=BF=AE=E5=96=84?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E8=AF=AD=E5=8F=A5=EF=BC=8C=E4=BD=BF=E5=85=B6?= =?UTF-8?q?=E9=80=9A=E9=A1=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: LTree --- .../programming-manual/porting/porting.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md b/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md index 7697438..0967d34 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md @@ -97,7 +97,7 @@ rt_hw_interrupt_enable PROC ; PROC 伪指令定义函数 ![栈里的上下文信息](figures/10stack.png) -下代码是栈初始化的代码: +以下代码是栈初始化的代码: 在栈里构建上下文 @@ -203,7 +203,7 @@ rt_hw_context_switch_to PROC MOV r0, #0x0 STR r0, [r1] - ; 设置标志为 1,表示需要切换,这个变量将在 PendSV 异常处理函数里切换的时被清零 + ; 设置标志为 1,表示需要切换,这个变量将在 PendSV 异常处理函数里切换时被清零 LDR r1, =rt_thread_switch_interrupt_flag MOV r0, #1 STR r0, [r1] @@ -240,7 +240,7 @@ rt_hw_context_switch_to PROC ![rt_hw_context_switch()/ rt_hw_context_switch_interrupt() 流程图](figures/10switch2.png) -在 Cortex-M3 内核上的 rt_hw_context_switch() 和 rt_hw_context_switch_interrupt() 实现(基于 MDK),如下代码的所示: +在 Cortex-M3 内核上的 rt_hw_context_switch() 和 rt_hw_context_switch_interrupt() 实现(基于 MDK),如下代码所示: rt_hw_context_switch()/rt_hw_context_switch_interrupt() 实现 @@ -274,7 +274,7 @@ _reswitch LDR r2, =rt_interrupt_to_thread STR r1, [r2] - ; 触发 PendSV 异常,将进入 PendSV 异常处理函数里完成上下文切换 + ; 触发 PendSV 异常,将进入 PendSV 异常处理函数来完成上下文切换 LDR r0, =NVIC_INT_CTRL LDR r1, =NVIC_PENDSVSET STR r1, [r0] -- Gitee