Bläddra i källkod

[libcpu][arm] 修复因提前返回,导致sp指针不对称问题

tangyuxin 5 år sedan
förälder
incheckning
8316646b85
3 ändrade filer med 0 tillägg och 3 borttagningar
  1. 0 1
      libcpu/arm/cortex-m3/cpuport.c
  2. 0 1
      libcpu/arm/cortex-m4/cpuport.c
  3. 0 1
      libcpu/arm/cortex-m7/cpuport.c

+ 0 - 1
libcpu/arm/cortex-m3/cpuport.c

@@ -395,7 +395,6 @@ int __rt_ffs(int value)
         "ADDS    r0, r0, #0x01        \n"
 
         "exit:                        \n"
-        "BX      lr                   \n"
 
         : "=r"(value)
         : "r"(value)

+ 0 - 1
libcpu/arm/cortex-m4/cpuport.c

@@ -479,7 +479,6 @@ int __rt_ffs(int value)
         "ADDS    r0, r0, #0x01        \n"
 
         "exit:                        \n"
-        "BX      lr                   \n"
 
         : "=r"(value)
         : "r"(value)

+ 0 - 1
libcpu/arm/cortex-m7/cpuport.c

@@ -479,7 +479,6 @@ int __rt_ffs(int value)
         "ADDS    r0, r0, #0x01        \n"
 
         "exit:                        \n"
-        "BX      lr                   \n"
 
         : "=r"(value)
         : "r"(value)