4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-21 11:33:31 +08:00

27 Commits

Author SHA1 Message Date
LaterComer
c09d7e1e49
删除tools/kconfiglib文件夹,采用pip安装kconfiglib
* 删除tools/kconfiglib文件夹,采用pip安装kconfiglib

* workflows/action_utest.yml添加安装kconfiglib
2024-06-30 22:55:41 +08:00
Shell
65c9947225
[libcpu] rv64: support for ARCH_REMAP_KERNEL (#9067)
* [libcpu] support for ARCH_REMAP_KERNEL

These changes introduce support for the ARCH_REMAP_KERNEL configuration,
which isolates kernel space in high virtual address regions. This feature
is necessary to enhance memory protection and management by segregating
user and kernel spaces more effectively.

Changes:
- Updated conditional macros to check for ARCH_REMAP_KERNEL instead of
  ARCH_KERNEL_IN_HIGH_VA in board initialization files to reflect the new
  configuration option.
- Modified qemu-virt64-riscv Kconfig and SConstruct files to include and
  utilize ARCH_REMAP_KERNEL.
- Created a new linker script `link_smart.lds` for smart linking in qemu-virt64-riscv.
- Updated rtconfig.py to use a more flexible execution path setup.
- Enhanced user address space definitions in `lwp_arch.h` to support the
  new virtual address mappings.
- Adjusted kernel memory initialization and mapping logic in `c906/mmu.c`
  and `virt64/mmu.c` to account for high virtual address regions.
- Added Kconfig option to enable ARCH_REMAP_KERNEL for RISCV64 architectures.
- Enhanced memory setup functions to support new mapping scheme, including
  updates to early page table setup and address relocation logic.

These modifications ensure that the system can utilize high memory
addresses for the kernel, improving memory isolation and system stability.

Signed-off-by: Shell <smokewood@qq.com>

* fixup: CI run failed

* bsp: default config without using smart

* fixup: static checks

* restore rt_hw_mmu_kernel_map_init for D1

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-06-18 11:15:59 +08:00
Shell
e82c53559b
[utest] add device find (#8959)
* [utest] add device find

Signed-off-by: Shell <smokewood@qq.com>

* fixup: add test

* fixup: ptr aliasing

* quality: meaning parameter

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-05-21 08:56:35 +08:00
Meco Man
32ada5eed1 [ci] actions/checkout upgrade to v4 2023-12-27 12:49:19 +08:00
Supper Thomas
2db41308ea [ci][action] add the repo check for self-use 2023-07-10 21:59:06 -04:00
Yaochenger
de4f237482
[atomic]添加arm与risc-v下的常用原子操作函数 (#7053)
* 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>
2023-03-23 20:06:50 +08:00
guozhanxin
b32eae36d3 [ci]add aarch64 smart ci 2023-02-13 10:56:17 +08:00
guozhanxin
1c46f2f686 add rt-smart risv64 ci 2023-02-13 10:56:17 +08:00
guozhanxin
aa83f64ef2 [ci] utest add --strict 2023-02-13 10:56:17 +08:00
guozhanxin
ba5c63e65d add rtsmart ci 2023-02-13 10:56:17 +08:00
Alex
e0294dab50
GitHub Workflows security hardening (#6472)
* build: harden action_tools.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden action.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden action_utest.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-29 01:44:28 -04:00
rewine
9ebe0f3b47 [bsp] rename qemu-riscv-virt64 to qemu-virt64-riscv 2022-05-25 10:05:23 +08:00
guozhanxin
1404186602 [utestcases] add cpp11 base testcase. 2022-04-21 14:35:11 +08:00
guo
45c6db63fc
[ci] update action use python@v3 (#5756) 2022-04-01 12:05:39 +08:00
guozhanxin
4dab5e0e59 [ci] Optimize AutoTestCI trigger timing. 2022-01-20 20:51:30 +08:00
guozhanxin
b3de430911 [update] ci toolchain download using github link. 2021-11-14 20:54:41 +08:00
mazhiyuan
c3465dfab7 add thread testcase 2021-10-11 13:47:26 +08:00
guozhanxin
fe4bec08a5 【ci】添加 timer、irq 测试 2021-08-24 17:20:12 +08:00
guozhanxin
5074c86dce [ci][autotest] add ipc.conf 2021-08-15 16:17:15 +08:00
tyustli
8d1f0758d6 [add] semaphore testcase ci config 2021-08-12 19:48:27 +08:00
guozhanxin
cc5fa682cd [ci] Simplified configuration files. 2021-06-18 19:43:57 +08:00
Henson
89717a4546 [ci] add riscv64 autotest. 2021-06-17 21:50:46 +08:00
Bernard Xiong
52a66cc96f
Merge pull request #4756 from Guozhanxin/ac6
[src][memheap]Fix the crash problem after opening Oz optimization on ac6.
2021-06-03 18:20:13 +08:00
guozhanxin
4d213254c3 [ci] add kernel/mem testcase. 2021-06-03 15:08:31 +08:00
guozhanxin
9d5ae107ee [ci] update Arm ToolChains to 10-2020-q4. 2021-06-02 09:15:25 +08:00
guozhanxin
0e4228dbec [添加] ci 触发方式 2021-05-10 20:42:48 +08:00
guozhanxin
3906f3b948 [add] auto test ci. 2021-05-10 20:34:35 +08:00