arch/mips: 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 2026-01-13 09:38:50 +08:00 committed by Alan C. Assis
parent dfd3426aa5
commit 23fa9b16b3
3 changed files with 12 additions and 4 deletions

View file

@ -323,6 +323,7 @@ struct xcpt_syscall_s
struct xcptcontext
{
#ifdef CONFIG_ENABLE_ALL_SIGNALS
/* These additional register save locations are used to implement the
* signal delivery trampoline.
*
@ -334,6 +335,7 @@ struct xcptcontext
uint32_t saved_epc; /* Trampoline PC */
uint32_t saved_status; /* Status with interrupts disabled. */
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
#ifdef CONFIG_BUILD_KERNEL
/* This is the saved address to use when returning from a user-space

View file

@ -32,12 +32,15 @@ CMN_CSRCS += mips_doirq.c mips_exit.c mips_getintstack.c mips_initialize.c
CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c
CMN_CSRCS += mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
CMN_CSRCS += mips_nputs.c mips_releasestack.c mips_registerdump.c
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c mips_swint0.c
CMN_CSRCS += mips_stackframe.c mips_switchcontext.c mips_saveusercontext.c
CMN_CSRCS += mips_usestack.c mips_fork.c
CMN_CSRCS += mips_usestack.c mips_fork.c mips_swint0.c
# Configuration dependent common files
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c
endif
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
CMN_CSRCS += mips_idle.c
endif

View file

@ -32,12 +32,15 @@ CMN_CSRCS += mips_doirq.c mips_exit.c mips_getintstack.c mips_initialize.c
CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c
CMN_CSRCS += mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
CMN_CSRCS += mips_nputs.c mips_releasestack.c mips_registerdump.c
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c mips_swint0.c
CMN_CSRCS += mips_stackframe.c mips_switchcontext.c mips_saveusercontext.c
CMN_CSRCS += mips_usestack.c mips_fork.c
CMN_CSRCS += mips_usestack.c mips_fork.c mips_swint0.c
# Configuration dependent common files
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c
endif
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
CMN_CSRCS += mips_idle.c
endif