arch/x86: 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:08:17 +08:00 committed by Alan C. Assis
parent 92f097e354
commit 2d6eef74b5
2 changed files with 8 additions and 3 deletions

View file

@ -153,6 +153,7 @@
#ifndef __ASSEMBLY__
struct xcptcontext
{
#ifdef CONFIG_ENABLE_ALL_SIGNALS
/* These are saved copies of instruction pointer and EFLAGS used during
* signal processing.
*
@ -164,7 +165,7 @@ struct xcptcontext
uint32_t saved_eip;
uint32_t saved_eflags;
#endif
/* Register save area */
uint32_t regs[XCPTCONTEXT_REGS];

View file

@ -34,8 +34,12 @@ CMN_CSRCS += x86_getintstack.c x86_initialize.c
CMN_CSRCS += x86_modifyreg8.c x86_modifyreg16.c x86_modifyreg32.c
CMN_CSRCS += x86_nputs.c x86_switchcontext.c x86_tcbinfo.c
CMN_CSRCS += i486_irq.c i486_regdump.c i486_releasestack.c
CMN_CSRCS += i486_savestate.c i486_sigdeliver.c i486_stackframe.c
CMN_CSRCS += i486_schedulesigaction.c i486_usestack.c
CMN_CSRCS += i486_savestate.c i486_stackframe.c
CMN_CSRCS += i486_usestack.c
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
CMN_CSRCS += i486_schedulesigaction.c i486_sigdeliver.c
endif
# Required QEMU files