diff options
| author | Bernard Xiong <[email protected]> | 2019-09-20 06:26:58 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-20 06:26:58 +0800 |
| commit | 0a42780edb3604e4e7b45696e5774fd234885906 (patch) | |
| tree | 5362f6a5c77a778e4b763dcff48de154b21f1be7 | |
| parent | 71346926c4ce8f4a4718b7ea4fed52e343de40ab (diff) | |
| parent | 8316646b8580362bf00715a91686721e7981fd59 (diff) | |
Merge pull request #3089 from enkiller/pr1
[libcpu][arm] 修复因提前返回,导致sp指针不对称问题
| -rw-r--r-- | libcpu/arm/cortex-m3/cpuport.c | 1 | ||||
| -rw-r--r-- | libcpu/arm/cortex-m4/cpuport.c | 1 | ||||
| -rw-r--r-- | libcpu/arm/cortex-m7/cpuport.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index 0a948c528b..d17d4fdf2e 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/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) diff --git a/libcpu/arm/cortex-m4/cpuport.c b/libcpu/arm/cortex-m4/cpuport.c index 71a7fb16f9..f556ba0c26 100644 --- a/libcpu/arm/cortex-m4/cpuport.c +++ b/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) diff --git a/libcpu/arm/cortex-m7/cpuport.c b/libcpu/arm/cortex-m7/cpuport.c index 85960baede..c22242f140 100644 --- a/libcpu/arm/cortex-m7/cpuport.c +++ b/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) |
