diff options
| author | liuxianliang <[email protected]> | 2021-04-06 10:42:58 +0800 |
|---|---|---|
| committer | liuxianliang <[email protected]> | 2021-04-06 10:42:58 +0800 |
| commit | 233e1cd8bc7cbdc38006dfc18adde8bc2595620f (patch) | |
| tree | cec4669f56b09734b7dcc2682d854fef325722b8 /libcpu/arm/cortex-m4 | |
| parent | 4431c4796fb3e26fb66c012feb8bf47f3292b473 (diff) | |
| parent | c5a0df2254bd6fadc941a33d9066ce6b972c4274 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one
Diffstat (limited to 'libcpu/arm/cortex-m4')
| -rw-r--r-- | libcpu/arm/cortex-m4/SConscript | 3 | ||||
| -rw-r--r-- | libcpu/arm/cortex-m4/cpuport.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-m4/SConscript b/libcpu/arm/cortex-m4/SConscript index 28af7ba651..73101dbcf3 100644 --- a/libcpu/arm/cortex-m4/SConscript +++ b/libcpu/arm/cortex-m4/SConscript @@ -11,6 +11,9 @@ CPPPATH = [cwd] if rtconfig.PLATFORM == 'armcc': src += Glob('*_rvds.S') +if rtconfig.PLATFORM == 'armclang': + src += Glob('*_rvds.S') + if rtconfig.PLATFORM == 'gcc': src += Glob('*_init.S') src += Glob('*_gcc.S') diff --git a/libcpu/arm/cortex-m4/cpuport.c b/libcpu/arm/cortex-m4/cpuport.c index 2e47832259..dbc42d21cf 100644 --- a/libcpu/arm/cortex-m4/cpuport.c +++ b/libcpu/arm/cortex-m4/cpuport.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -454,7 +454,7 @@ RT_WEAK void rt_hw_cpu_reset(void) * @return return the index of the first bit set. If value is 0, then this function * shall return 0. */ -#if defined(__CC_ARM) +#if defined(__CC_ARM) __asm int __rt_ffs(int value) { CMP r0, #0x00 |
