浏览代码

Merge pull request #3701 from xuzhuoyi/master

[libcpu][arm][cortex-m23] Change exception return call address
Bernard Xiong 4 年之前
父节点
当前提交
d9c9749b1f
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      libcpu/arm/cortex-m23/context_gcc.S
  2. 1 1
      libcpu/arm/cortex-m23/context_iar.S
  3. 1 1
      libcpu/arm/cortex-m23/context_rvds.S

+ 1 - 1
libcpu/arm/cortex-m23/context_gcc.S

@@ -137,7 +137,7 @@ pendsv_exit:
     /* restore interrupt */
     /* restore interrupt */
     MSR     PRIMASK, R2
     MSR     PRIMASK, R2
 
 
-    MOVS    R0, #0x04
+    MOVS    R0, #0x03
     RSBS    R0, R0, #0x00
     RSBS    R0, R0, #0x00
     BX      R0
     BX      R0
 /*
 /*

+ 1 - 1
libcpu/arm/cortex-m23/context_iar.S

@@ -139,7 +139,7 @@ pendsv_exit
     ; restore interrupt
     ; restore interrupt
     MSR     PRIMASK, r2
     MSR     PRIMASK, r2
 
 
-    MOVS    r0, #0x04
+    MOVS    r0, #0x03
     RSBS    r0, r0, #0x00
     RSBS    r0, r0, #0x00
     BX      r0
     BX      r0
 
 

+ 1 - 1
libcpu/arm/cortex-m23/context_rvds.S

@@ -143,7 +143,7 @@ pendsv_exit
     ; restore interrupt
     ; restore interrupt
     MSR     PRIMASK, r2
     MSR     PRIMASK, r2
 
 
-    MOVS    r0, #0x04
+    MOVS    r0, #0x03
     RSBS    r0, r0, #0x00
     RSBS    r0, r0, #0x00
     BX      r0
     BX      r0
     ENDP
     ENDP