Skip to content

Commit d9c9749

Browse files
authored
Merge pull request #3701 from xuzhuoyi/master
[libcpu][arm][cortex-m23] Change exception return call address
2 parents 2d2c20c + 1f2a7b5 commit d9c9749

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libcpu/arm/cortex-m23/context_gcc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pendsv_exit:
137137
/* restore interrupt */
138138
MSR PRIMASK, R2
139139

140-
MOVS R0, #0x04
140+
MOVS R0, #0x03
141141
RSBS R0, R0, #0x00
142142
BX R0
143143
/*

libcpu/arm/cortex-m23/context_iar.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pendsv_exit
139139
; restore interrupt
140140
MSR PRIMASK, r2
141141

142-
MOVS r0, #0x04
142+
MOVS r0, #0x03
143143
RSBS r0, r0, #0x00
144144
BX r0
145145

libcpu/arm/cortex-m23/context_rvds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pendsv_exit
143143
; restore interrupt
144144
MSR PRIMASK, r2
145145

146-
MOVS r0, #0x04
146+
MOVS r0, #0x03
147147
RSBS r0, r0, #0x00
148148
BX r0
149149
ENDP

0 commit comments

Comments
 (0)