Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
2c47f2e6
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2c47f2e6
编写于
7月 31, 2014
作者:
wuyangyong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some spell error;
上级
07c48641
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
36 addition
and
36 deletion
+36
-36
libcpu/arm/cortex-m0/context_gcc.S
libcpu/arm/cortex-m0/context_gcc.S
+4
-4
libcpu/arm/cortex-m0/context_iar.S
libcpu/arm/cortex-m0/context_iar.S
+4
-4
libcpu/arm/cortex-m0/context_rvds.S
libcpu/arm/cortex-m0/context_rvds.S
+4
-4
libcpu/arm/cortex-m3/context_gcc.S
libcpu/arm/cortex-m3/context_gcc.S
+4
-4
libcpu/arm/cortex-m3/context_iar.S
libcpu/arm/cortex-m3/context_iar.S
+4
-4
libcpu/arm/cortex-m3/context_rvds.S
libcpu/arm/cortex-m3/context_rvds.S
+4
-4
libcpu/arm/cortex-m4/context_gcc.S
libcpu/arm/cortex-m4/context_gcc.S
+4
-4
libcpu/arm/cortex-m4/context_iar.S
libcpu/arm/cortex-m4/context_iar.S
+4
-4
libcpu/arm/cortex-m4/context_rvds.S
libcpu/arm/cortex-m4/context_rvds.S
+4
-4
未找到文件。
libcpu/arm/cortex-m0/context_gcc.S
浏览文件 @
2c47f2e6
...
...
@@ -79,8 +79,8 @@ _reswitch:
STR
R1
,
[
R0
]
BX
LR
/*
R0
-->
swith
from
thread
stack
*
R1
-->
swith
to
thread
stack
/*
R0
-->
swit
c
h
from
thread
stack
*
R1
-->
swit
c
h
to
thread
stack
*
psr
,
pc
,
LR
,
R12
,
R3
,
R2
,
R1
,
R0
are
pushed
into
[
from
]
stack
*/
.
global
PendSV_Handler
...
...
@@ -103,7 +103,7 @@ PendSV_Handler:
LDR
R0
,
=
rt_interrupt_from_thread
LDR
R1
,
[
R0
]
CMP
R1
,
#
0x00
BEQ
sw
ti
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
BEQ
sw
it
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
MRS
R1
,
PSP
/*
get
from
thread
stack
pointer
*/
...
...
@@ -118,7 +118,7 @@ PendSV_Handler:
MOV
R6
,
R10
MOV
R7
,
R11
STMIA
R1
!,
{
R4
-
R7
}
/*
push
thread
{
R8
-
R11
}
high
register
to
thread
stack
*/
sw
ti
ch_to_thread
:
sw
it
ch_to_thread
:
LDR
R1
,
=
rt_interrupt_to_thread
LDR
R1
,
[
R1
]
LDR
R1
,
[
R1
]
/*
load
thread
stack
pointer
*/
...
...
libcpu/arm/cortex-m0/context_iar.S
浏览文件 @
2c47f2e6
...
...
@@ -81,8 +81,8 @@ _reswitch
STR
r1
,
[
r0
]
BX
LR
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
EXPORT
PendSV_Handler
PendSV_Handler
:
...
...
@@ -104,7 +104,7 @@ PendSV_Handler:
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CMP
r1
,
#
0x00
BEQ
sw
ti
ch_to_thread
; skip register save at the first time
BEQ
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
...
...
@@ -120,7 +120,7 @@ PendSV_Handler:
MOV
r7
,
r11
STMIA
r1
!,
{
r4
-
r7
}
; push thread {r8 - r11} high register to thread stack
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
libcpu/arm/cortex-m0/context_rvds.S
浏览文件 @
2c47f2e6
...
...
@@ -85,8 +85,8 @@ _reswitch
BX
LR
ENDP
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
PendSV_Handler
PROC
EXPORT
PendSV_Handler
...
...
@@ -108,7 +108,7 @@ PendSV_Handler PROC
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CMP
r1
,
#
0x00
BEQ
sw
ti
ch_to_thread
; skip register save at the first time
BEQ
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
...
...
@@ -124,7 +124,7 @@ PendSV_Handler PROC
MOV
r7
,
r11
STMIA
r1
!,
{
r4
-
r7
}
; push thread {r8 - r11} high register to thread stack
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
libcpu/arm/cortex-m3/context_gcc.S
浏览文件 @
2c47f2e6
...
...
@@ -80,8 +80,8 @@ _reswitch:
STR
R1
,
[
R0
]
BX
LR
/*
R0
-->
swith
from
thread
stack
*
R1
-->
swith
to
thread
stack
/*
R0
-->
swit
c
h
from
thread
stack
*
R1
-->
swit
c
h
to
thread
stack
*
psr
,
pc
,
LR
,
R12
,
R3
,
R2
,
R1
,
R0
are
pushed
into
[
from
]
stack
*/
.
global
PendSV_Handler
...
...
@@ -102,14 +102,14 @@ PendSV_Handler:
LDR
R0
,
=
rt_interrupt_from_thread
LDR
R1
,
[
R0
]
CBZ
R1
,
sw
ti
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
CBZ
R1
,
sw
it
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
MRS
R1
,
PSP
/*
get
from
thread
stack
pointer
*/
STMFD
R1
!,
{
R4
-
R11
}
/*
push
R4
-
R11
register
*/
LDR
R0
,
[
R0
]
STR
R1
,
[
R0
]
/*
update
from
thread
stack
pointer
*/
sw
ti
ch_to_thread
:
sw
it
ch_to_thread
:
LDR
R1
,
=
rt_interrupt_to_thread
LDR
R1
,
[
R1
]
LDR
R1
,
[
R1
]
/*
load
thread
stack
pointer
*/
...
...
libcpu/arm/cortex-m3/context_iar.S
浏览文件 @
2c47f2e6
...
...
@@ -81,8 +81,8 @@ _reswitch
STR
r1
,
[
r0
]
BX
LR
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
EXPORT
PendSV_Handler
PendSV_Handler
:
...
...
@@ -102,14 +102,14 @@ PendSV_Handler:
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CBZ
r1
,
sw
ti
ch_to_thread
; skip register save at the first time
CBZ
r1
,
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
STMFD
r1
!,
{
r4
-
r11
}
; push r4 - r11 register
LDR
r0
,
[
r0
]
STR
r1
,
[
r0
]
; update from thread stack pointer
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
libcpu/arm/cortex-m3/context_rvds.S
浏览文件 @
2c47f2e6
...
...
@@ -84,8 +84,8 @@ _reswitch
BX
LR
ENDP
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
PendSV_Handler
PROC
EXPORT
PendSV_Handler
...
...
@@ -105,14 +105,14 @@ PendSV_Handler PROC
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CBZ
r1
,
sw
ti
ch_to_thread
; skip register save at the first time
CBZ
r1
,
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
STMFD
r1
!,
{
r4
-
r11
}
; push r4 - r11 register
LDR
r0
,
[
r0
]
STR
r1
,
[
r0
]
; update from thread stack pointer
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
libcpu/arm/cortex-m4/context_gcc.S
浏览文件 @
2c47f2e6
...
...
@@ -82,8 +82,8 @@ _reswitch:
STR
r1
,
[
r0
]
BX
LR
/*
r0
-->
swith
from
thread
stack
*
r1
-->
swith
to
thread
stack
/*
r0
-->
swit
c
h
from
thread
stack
*
r1
-->
swit
c
h
to
thread
stack
*
psr
,
pc
,
lr
,
r12
,
r3
,
r2
,
r1
,
r0
are
pushed
into
[
from
]
stack
*/
.
global
PendSV_Handler
...
...
@@ -104,7 +104,7 @@ PendSV_Handler:
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CBZ
r1
,
sw
ti
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
CBZ
r1
,
sw
it
ch_to_thread
/*
skip
register
save
at
the
first
time
*/
MRS
r1
,
psp
/*
get
from
thread
stack
pointer
*/
...
...
@@ -127,7 +127,7 @@ PendSV_Handler:
LDR
r0
,
[
r0
]
STR
r1
,
[
r0
]
/*
update
from
thread
stack
pointer
*/
sw
ti
ch_to_thread
:
sw
it
ch_to_thread
:
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
/*
load
thread
stack
pointer
*/
...
...
libcpu/arm/cortex-m4/context_iar.S
浏览文件 @
2c47f2e6
...
...
@@ -82,8 +82,8 @@ _reswitch
STR
r1
,
[
r0
]
BX
LR
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
EXPORT
PendSV_Handler
PendSV_Handler
:
...
...
@@ -103,7 +103,7 @@ PendSV_Handler:
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CBZ
r1
,
sw
ti
ch_to_thread
; skip register save at the first time
CBZ
r1
,
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
...
...
@@ -130,7 +130,7 @@ push_flag
LDR
r0
,
[
r0
]
STR
r1
,
[
r0
]
; update from thread stack pointer
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
libcpu/arm/cortex-m4/context_rvds.S
浏览文件 @
2c47f2e6
...
...
@@ -85,8 +85,8 @@ _reswitch
BX
LR
ENDP
; r0 --> swith from thread stack
; r1 --> swith to thread stack
; r0 --> swit
c
h from thread stack
; r1 --> swit
c
h to thread stack
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
PendSV_Handler
PROC
EXPORT
PendSV_Handler
...
...
@@ -106,7 +106,7 @@ PendSV_Handler PROC
LDR
r0
,
=
rt_interrupt_from_thread
LDR
r1
,
[
r0
]
CBZ
r1
,
sw
ti
ch_to_thread
; skip register save at the first time
CBZ
r1
,
sw
it
ch_to_thread
; skip register save at the first time
MRS
r1
,
psp
; get from thread stack pointer
...
...
@@ -129,7 +129,7 @@ PendSV_Handler PROC
LDR
r0
,
[
r0
]
STR
r1
,
[
r0
]
; update from thread stack pointer
sw
ti
ch_to_thread
sw
it
ch_to_thread
LDR
r1
,
=
rt_interrupt_to_thread
LDR
r1
,
[
r1
]
LDR
r1
,
[
r1
]
; load thread stack pointer
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录