build/cmake: kernel mode revision

This fixes kernel mode regression caused by #12011

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-03-28 11:24:33 +08:00 committed by Xiang Xiao
parent f732428331
commit 3a59644485

View File

@ -51,7 +51,9 @@ endif()
if(NOT CONFIG_BUILD_FLAT)
list(APPEND SRCS riscv_task_start.c riscv_pthread_start.c
riscv_signal_dispatch.c)
target_sources(arch_interface PRIVATE riscv_signal_handler.S)
if(CONFIG_BUILD_PROTECTED)
target_sources(arch_interface PRIVATE riscv_signal_handler.S)
endif()
endif()
if(CONFIG_SCHED_BACKTRACE)