arch/tricore: Add support to disable signals actions related data struct

Add support to disable signals actions related struct

Co-authored-by: guoshichao <guoshichao@xiaomi.com>
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
wangchengdong 2025-12-23 11:05:45 +08:00 committed by Alan C. Assis
parent d3f89c2661
commit 92f097e354
3 changed files with 10 additions and 5 deletions

View file

@ -119,12 +119,13 @@
#ifndef __ASSEMBLY__
struct xcptcontext
{
#ifdef CONFIG_ENABLE_ALL_SIGNALS
/* These are saved copies of the context used during
* signal processing.
*/
uintptr_t *saved_regs;
#endif
/* Register save area with XCPTCONTEXT_SIZE, only valid when:
* 1.The task isn't running or
* 2.The task is interrupted

View file

@ -36,8 +36,6 @@ set(SRCS
tricore_registerdump.c
tricore_releasestack.c
tricore_saveusercontext.c
tricore_schedulesigaction.c
tricore_sigdeliver.c
tricore_stackframe.c
tricore_svcall.c
tricore_tcbinfo.c
@ -45,6 +43,10 @@ set(SRCS
tricore_systimer.c
tricore_usestack.c)
if(CONFIG_ENABLE_ALL_SIGNALS)
list(APPEND SRCS tricore_schedulesigaction.c tricore_sigdeliver.c)
endif()
if(CONFIG_SPINLOCK)
list(APPEND SRCS tricore_testset.c)
endif()

View file

@ -37,8 +37,6 @@ CMN_CSRCS += tricore_nputs.c
CMN_CSRCS += tricore_registerdump.c
CMN_CSRCS += tricore_releasestack.c
CMN_CSRCS += tricore_saveusercontext.c
CMN_CSRCS += tricore_schedulesigaction.c
CMN_CSRCS += tricore_sigdeliver.c
CMN_CSRCS += tricore_stackframe.c
CMN_CSRCS += tricore_svcall.c
CMN_CSRCS += tricore_tcbinfo.c
@ -46,6 +44,10 @@ CMN_CSRCS += tricore_trapcall.c
CMN_CSRCS += tricore_systimer.c
CMN_CSRCS += tricore_usestack.c
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
CMN_CSRCS += tricore_schedulesigaction.c tricore_sigdeliver.c
endif
ifeq ($(CONFIG_SPINLOCK),y)
CMN_CSRCS += tricore_testset.c
endif