Skip to content

Commit 5ccf1d4

Browse files
committed
[libcpu] fix spell wrong.
1 parent 4e96775 commit 5ccf1d4

File tree

9 files changed

+36
-36
lines changed

9 files changed

+36
-36
lines changed

libcpu/arm/cortex-m0/context_gcc.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ _reswitch:
7979
STR R1, [R0]
8080
BX LR
8181

82-
/* R0 --> swith from thread stack
83-
* R1 --> swith to thread stack
82+
/* R0 --> switch from thread stack
83+
* R1 --> switch to thread stack
8484
* psr, pc, LR, R12, R3, R2, R1, R0 are pushed into [from] stack
8585
*/
8686
.global PendSV_Handler
@@ -103,7 +103,7 @@ PendSV_Handler:
103103
LDR R0, =rt_interrupt_from_thread
104104
LDR R1, [R0]
105105
CMP R1, #0x00
106-
BEQ swtich_to_thread /* skip register save at the first time */
106+
BEQ switch_to_thread /* skip register save at the first time */
107107

108108
MRS R1, PSP /* get from thread stack pointer */
109109

@@ -118,7 +118,7 @@ PendSV_Handler:
118118
MOV R6, R10
119119
MOV R7, R11
120120
STMIA R1!, {R4 - R7} /* push thread {R8 - R11} high register to thread stack */
121-
swtich_to_thread:
121+
switch_to_thread:
122122
LDR R1, =rt_interrupt_to_thread
123123
LDR R1, [R1]
124124
LDR R1, [R1] /* load thread stack pointer */

libcpu/arm/cortex-m0/context_iar.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ _reswitch
8181
STR r1, [r0]
8282
BX LR
8383

84-
; r0 --> swith from thread stack
85-
; r1 --> swith to thread stack
84+
; r0 --> switch from thread stack
85+
; r1 --> switch to thread stack
8686
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
8787
EXPORT PendSV_Handler
8888
PendSV_Handler:
@@ -104,7 +104,7 @@ PendSV_Handler:
104104
LDR r0, =rt_interrupt_from_thread
105105
LDR r1, [r0]
106106
CMP r1, #0x00
107-
BEQ swtich_to_thread ; skip register save at the first time
107+
BEQ switch_to_thread ; skip register save at the first time
108108

109109
MRS r1, psp ; get from thread stack pointer
110110

@@ -120,7 +120,7 @@ PendSV_Handler:
120120
MOV r7, r11
121121
STMIA r1!, {r4 - r7} ; push thread {r8 - r11} high register to thread stack
122122

123-
swtich_to_thread
123+
switch_to_thread
124124
LDR r1, =rt_interrupt_to_thread
125125
LDR r1, [r1]
126126
LDR r1, [r1] ; load thread stack pointer

libcpu/arm/cortex-m0/context_rvds.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ _reswitch
8585
BX LR
8686
ENDP
8787

88-
; r0 --> swith from thread stack
89-
; r1 --> swith to thread stack
88+
; r0 --> switch from thread stack
89+
; r1 --> switch to thread stack
9090
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
9191
PendSV_Handler PROC
9292
EXPORT PendSV_Handler
@@ -108,7 +108,7 @@ PendSV_Handler PROC
108108
LDR r0, =rt_interrupt_from_thread
109109
LDR r1, [r0]
110110
CMP r1, #0x00
111-
BEQ swtich_to_thread ; skip register save at the first time
111+
BEQ switch_to_thread ; skip register save at the first time
112112

113113
MRS r1, psp ; get from thread stack pointer
114114

@@ -124,7 +124,7 @@ PendSV_Handler PROC
124124
MOV r7, r11
125125
STMIA r1!, {r4 - r7} ; push thread {r8 - r11} high register to thread stack
126126

127-
swtich_to_thread
127+
switch_to_thread
128128
LDR r1, =rt_interrupt_to_thread
129129
LDR r1, [r1]
130130
LDR r1, [r1] ; load thread stack pointer

libcpu/arm/cortex-m3/context_gcc.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ _reswitch:
8080
STR R1, [R0]
8181
BX LR
8282

83-
/* R0 --> swith from thread stack
84-
* R1 --> swith to thread stack
83+
/* R0 --> switch from thread stack
84+
* R1 --> switch to thread stack
8585
* psr, pc, LR, R12, R3, R2, R1, R0 are pushed into [from] stack
8686
*/
8787
.global PendSV_Handler
@@ -102,14 +102,14 @@ PendSV_Handler:
102102

103103
LDR R0, =rt_interrupt_from_thread
104104
LDR R1, [R0]
105-
CBZ R1, swtich_to_thread /* skip register save at the first time */
105+
CBZ R1, switch_to_thread /* skip register save at the first time */
106106

107107
MRS R1, PSP /* get from thread stack pointer */
108108
STMFD R1!, {R4 - R11} /* push R4 - R11 register */
109109
LDR R0, [R0]
110110
STR R1, [R0] /* update from thread stack pointer */
111111

112-
swtich_to_thread:
112+
switch_to_thread:
113113
LDR R1, =rt_interrupt_to_thread
114114
LDR R1, [R1]
115115
LDR R1, [R1] /* load thread stack pointer */

libcpu/arm/cortex-m3/context_iar.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ _reswitch
8181
STR r1, [r0]
8282
BX LR
8383

84-
; r0 --> swith from thread stack
85-
; r1 --> swith to thread stack
84+
; r0 --> switch from thread stack
85+
; r1 --> switch to thread stack
8686
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
8787
EXPORT PendSV_Handler
8888
PendSV_Handler:
@@ -102,14 +102,14 @@ PendSV_Handler:
102102

103103
LDR r0, =rt_interrupt_from_thread
104104
LDR r1, [r0]
105-
CBZ r1, swtich_to_thread ; skip register save at the first time
105+
CBZ r1, switch_to_thread ; skip register save at the first time
106106

107107
MRS r1, psp ; get from thread stack pointer
108108
STMFD r1!, {r4 - r11} ; push r4 - r11 register
109109
LDR r0, [r0]
110110
STR r1, [r0] ; update from thread stack pointer
111111

112-
swtich_to_thread
112+
switch_to_thread
113113
LDR r1, =rt_interrupt_to_thread
114114
LDR r1, [r1]
115115
LDR r1, [r1] ; load thread stack pointer

libcpu/arm/cortex-m3/context_rvds.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ _reswitch
8484
BX LR
8585
ENDP
8686

87-
; r0 --> swith from thread stack
88-
; r1 --> swith to thread stack
87+
; r0 --> switch from thread stack
88+
; r1 --> switch to thread stack
8989
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
9090
PendSV_Handler PROC
9191
EXPORT PendSV_Handler
@@ -105,14 +105,14 @@ PendSV_Handler PROC
105105

106106
LDR r0, =rt_interrupt_from_thread
107107
LDR r1, [r0]
108-
CBZ r1, swtich_to_thread ; skip register save at the first time
108+
CBZ r1, switch_to_thread ; skip register save at the first time
109109

110110
MRS r1, psp ; get from thread stack pointer
111111
STMFD r1!, {r4 - r11} ; push r4 - r11 register
112112
LDR r0, [r0]
113113
STR r1, [r0] ; update from thread stack pointer
114114

115-
swtich_to_thread
115+
switch_to_thread
116116
LDR r1, =rt_interrupt_to_thread
117117
LDR r1, [r1]
118118
LDR r1, [r1] ; load thread stack pointer

libcpu/arm/cortex-m4/context_gcc.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ _reswitch:
8282
STR r1, [r0]
8383
BX LR
8484

85-
/* r0 --> swith from thread stack
86-
* r1 --> swith to thread stack
85+
/* r0 --> switch from thread stack
86+
* r1 --> switch to thread stack
8787
* psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
8888
*/
8989
.global PendSV_Handler
@@ -104,7 +104,7 @@ PendSV_Handler:
104104

105105
LDR r0, =rt_interrupt_from_thread
106106
LDR r1, [r0]
107-
CBZ r1, swtich_to_thread /* skip register save at the first time */
107+
CBZ r1, switch_to_thread /* skip register save at the first time */
108108

109109
MRS r1, psp /* get from thread stack pointer */
110110
@@ -127,7 +127,7 @@ PendSV_Handler:
127127
LDR r0, [r0]
128128
STR r1, [r0] /* update from thread stack pointer */
129129

130-
swtich_to_thread:
130+
switch_to_thread:
131131
LDR r1, =rt_interrupt_to_thread
132132
LDR r1, [r1]
133133
LDR r1, [r1] /* load thread stack pointer */

libcpu/arm/cortex-m4/context_iar.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ _reswitch
8282
STR r1, [r0]
8383
BX LR
8484

85-
; r0 --> swith from thread stack
86-
; r1 --> swith to thread stack
85+
; r0 --> switch from thread stack
86+
; r1 --> switch to thread stack
8787
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
8888
EXPORT PendSV_Handler
8989
PendSV_Handler:
@@ -103,7 +103,7 @@ PendSV_Handler:
103103

104104
LDR r0, =rt_interrupt_from_thread
105105
LDR r1, [r0]
106-
CBZ r1, swtich_to_thread ; skip register save at the first time
106+
CBZ r1, switch_to_thread ; skip register save at the first time
107107

108108
MRS r1, psp ; get from thread stack pointer
109109

@@ -130,7 +130,7 @@ push_flag
130130
LDR r0, [r0]
131131
STR r1, [r0] ; update from thread stack pointer
132132

133-
swtich_to_thread
133+
switch_to_thread
134134
LDR r1, =rt_interrupt_to_thread
135135
LDR r1, [r1]
136136
LDR r1, [r1] ; load thread stack pointer

libcpu/arm/cortex-m4/context_rvds.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ _reswitch
8585
BX LR
8686
ENDP
8787

88-
; r0 --> swith from thread stack
89-
; r1 --> swith to thread stack
88+
; r0 --> switch from thread stack
89+
; r1 --> switch to thread stack
9090
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
9191
PendSV_Handler PROC
9292
EXPORT PendSV_Handler
@@ -106,7 +106,7 @@ PendSV_Handler PROC
106106

107107
LDR r0, =rt_interrupt_from_thread
108108
LDR r1, [r0]
109-
CBZ r1, swtich_to_thread ; skip register save at the first time
109+
CBZ r1, switch_to_thread ; skip register save at the first time
110110

111111
MRS r1, psp ; get from thread stack pointer
112112

@@ -129,7 +129,7 @@ PendSV_Handler PROC
129129
LDR r0, [r0]
130130
STR r1, [r0] ; update from thread stack pointer
131131

132-
swtich_to_thread
132+
switch_to_thread
133133
LDR r1, =rt_interrupt_to_thread
134134
LDR r1, [r1]
135135
LDR r1, [r1] ; load thread stack pointer

0 commit comments

Comments
 (0)