Browse Source

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

tangyuxin 5 years ago
parent
commit
8316646b85

+ 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)