summaryrefslogtreecommitdiff
path: root/libcpu/Kconfig
diff options
context:
space:
mode:
authorYaochenger <[email protected]>2023-03-23 20:06:50 +0800
committerGitHub <[email protected]>2023-03-23 20:06:50 +0800
commitde4f23748212dbba7d0250fdac3ae583e74fcbed (patch)
treea076ba55e7d4105bd20e473ce4700985daca6243 /libcpu/Kconfig
parent765c2ec5f92e82596e1edc2cab6b1a741fd1cc3e (diff)
[atomic]添加arm与risc-v下的常用原子操作函数 (#7053)
* Update Kconfig * Update trap_gcc.S * Update bsp/hifive1/drivers/SConscript Co-authored-by: Man, Jianting (Meco) <[email protected]> * Update SConscript * [atomic]提交一份arm与risc-v架构下的常用原子操作函数 * 修改变量类型 * 更新rtatomic.h与atomic_port.c * 更新rt-thread\libcpu\arm\common\atomic_port.c * 更新include/rtatomic.h与libcpu/arm/common/SConscript * 更新include/rtatomic.h * 修正格式与Kconfig * 修正格式与文件结构 * 规范文件格式与文件重命名 * 添加测试用例与CI * 添加函数声明 * 修改virt64/SConscript 添加atomic_riscv.c * 1.规范代码风格 * 2.添加RISC-V64原子指令支持 解决在RV64下编译器将32-bit运算结果扩展为64-bit 导致判断错误 * 添加C11标准库原子操作测试 --------- Co-authored-by: Man, Jianting (Meco) <[email protected]>
Diffstat (limited to 'libcpu/Kconfig')
-rw-r--r--libcpu/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcpu/Kconfig b/libcpu/Kconfig
index 17a57199b9..1de73b0a49 100644
--- a/libcpu/Kconfig
+++ b/libcpu/Kconfig
@@ -5,6 +5,10 @@ config RT_USING_CACHE
bool
default n
+config RT_USING_HW_ATOMIC
+ bool
+ default n
+
config ARCH_CPU_BIG_ENDIAN
bool
@@ -47,6 +51,7 @@ config ARCH_ARM_CORTEX_M3
bool
select ARCH_ARM_CORTEX_M
select RT_USING_CPU_FFS
+ select RT_USING_HW_ATOMIC
config ARCH_ARM_MPU
bool
@@ -57,21 +62,25 @@ config ARCH_ARM_CORTEX_M4
bool
select ARCH_ARM_CORTEX_M
select RT_USING_CPU_FFS
+ select RT_USING_HW_ATOMIC
config ARCH_ARM_CORTEX_M7
bool
select ARCH_ARM_CORTEX_M
select RT_USING_CPU_FFS
select RT_USING_CACHE
+ select RT_USING_HW_ATOMIC
config ARCH_ARM_CORTEX_M33
bool
select ARCH_ARM_CORTEX_M
select RT_USING_CPU_FFS
+ select RT_USING_HW_ATOMIC
config ARCH_ARM_CORTEX_R
bool
select ARCH_ARM
+ select RT_USING_HW_ATOMIC
config ARCH_ARM_MMU
bool
@@ -107,6 +116,7 @@ config ARCH_ARM_CORTEX_A
select ARCH_ARM
select ARCH_ARM_MMU
select RT_USING_CPU_FFS
+ select RT_USING_HW_ATOMIC
if ARCH_ARM_CORTEX_A
config RT_SMP_AUTO_BOOT
@@ -156,6 +166,7 @@ config ARCH_ARMV8
bool
select ARCH_ARM
select ARCH_ARM_MMU
+ select RT_USING_HW_ATOMIC
config ARCH_MIPS
bool