mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-03-23 16:34:09 +08:00
This update adapts the ThreadX low-level kernel routines
for RV32, including:
- startup and initialization logic
- context save/restore implementations
- interrupt control and scheduler entry
- thread stack build and system return paths
- timer interrupt handling
- made it complient as per new risc-v64/gnu
& threadx style
- added reademe for risc-v32/gnu port
These changes provide full low-level support needed to run
ThreadX on RISC-V32 targets.
Signed-off-by: Akif Ejaz <akif.ejaz@10xengineers.ai>
13 lines
360 B
CMake
13 lines
360 B
CMake
# Name of the target
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
set(CMAKE_SYSTEM_PROCESSOR risc-v32)
|
|
|
|
set(THREADX_ARCH "risc-v32")
|
|
set(THREADX_TOOLCHAIN "gnu")
|
|
set(ARCH_FLAGS "-g -march=rv32gc -mabi=ilp32d -mcmodel=medany")
|
|
set(CFLAGS "${ARCH_FLAGS}")
|
|
set(ASFLAGS "${ARCH_FLAGS}")
|
|
set(LDFLAGS "${ARCH_FLAGS}")
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/riscv32-unknown-elf.cmake)
|