de4f237482
* Update Kconfig * Update trap_gcc.S * Update bsp/hifive1/drivers/SConscript Co-authored-by: Man, Jianting (Meco) <920369182@qq.com> * 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) <920369182@qq.com>
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
mainmenu "RT-Thread Project Configuration"
|
|
|
|
config BSP_DIR
|
|
string
|
|
option env="BSP_ROOT"
|
|
default "."
|
|
|
|
config RTT_DIR
|
|
string
|
|
option env="RTT_ROOT"
|
|
default "../../"
|
|
|
|
config PKGS_DIR
|
|
string
|
|
option env="PKGS_ROOT"
|
|
default "packages"
|
|
|
|
source "$RTT_DIR/Kconfig"
|
|
source "$PKGS_DIR/Kconfig"
|
|
source "driver/Kconfig"
|
|
|
|
config BOARD_QEMU_VIRT_RV64
|
|
bool
|
|
select ARCH_RISCV64
|
|
select ARCH_CONTEXT_EXTEND
|
|
select RT_USING_COMPONENTS_INIT
|
|
select RT_USING_USER_MAIN
|
|
select RT_USING_CACHE
|
|
select ARCH_MM_MMU
|
|
select RT_USING_HW_ATOMIC
|
|
default y
|
|
|
|
config ENABLE_FPU
|
|
bool "Enable FPU"
|
|
default y
|
|
|
|
config ENABLE_VECTOR
|
|
bool "Using RISC-V Vector Extension"
|
|
default n
|
|
|
|
if ENABLE_VECTOR
|
|
choice
|
|
prompt "Vector Registers Length in Bits"
|
|
default ARCH_VECTOR_VLEN_128
|
|
|
|
config ARCH_VECTOR_VLEN_128
|
|
bool "128"
|
|
|
|
config ARCH_VECTOR_VLEN_256
|
|
bool "256"
|
|
endchoice
|
|
endif
|
|
|
|
config RT_USING_USERSPACE_32BIT_LIMIT
|
|
bool "Enable userspace 32bit limit"
|
|
default n
|
|
|
|
config RT_USING_VIRTIO_MMIO_ALIGN
|
|
bool "Open packed attribution, this may caused an error on virtio"
|
|
default n
|
|
|
|
config ARCH_USING_NEW_CTX_SWITCH
|
|
bool
|
|
default y
|
|
|
|
config __STACKSIZE__
|
|
int "stack size for interrupt"
|
|
default 4096
|