Migrates plain ThreadX to the upstream RISC-V ports
Keeps the Moonlight startup objects local to the board. Updates the plain and SMP VP regression harnesses for the new ThreadX revision and replaces generated ISR hooks with direct callbacks.
This commit is contained in:
1 parent
26fd407a1e
commit
d404e17e5a
22 files changed
+148
-2311
No files matched your search
@@ -1,25 +1,11 @@
|
||||
#required for tests to hook into the ISR path
|
||||
if(NOT DEFINED THREADX_LOW_LEVEL_INIT_SOURCE)
|
||||
set(THREADX_LOW_LEVEL_INIT_SOURCE
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_initialize_low_level.c)
|
||||
endif()
|
||||
set(TX_USER_FILE ${CMAKE_CURRENT_LIST_DIR}/inc/tx_user.h)
|
||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../third-party/threadx upstream)
|
||||
target_link_libraries(threadx PUBLIC c moonlight)
|
||||
|
||||
target_sources(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
# {{BEGIN_TARGET_SOURCES}}
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/trap_entry.S
|
||||
${THREADX_LOW_LEVEL_INIT_SOURCE}
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_restore.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_save.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_interrupt_control.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_schedule.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_stack_build.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_system_return.S
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.c
|
||||
# {{END_TARGET_SOURCES}}
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
||||
# Link these objects directly into each executable so the board initialization
|
||||
# takes precedence over the upstream weak default.
|
||||
add_library(moonlight_threadx OBJECT
|
||||
src/trap_entry.S
|
||||
src/tx_initialize_low_level.c
|
||||
)
|
||||
target_link_libraries(moonlight_threadx PUBLIC threadx)
|
||||
Reference in new issue
Block a user