mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
arch/z80: 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:
committed by
Alan C. Assis
parent
d04ca30169
commit
9670b17ffd
@@ -248,6 +248,7 @@ struct xcptcontext
|
||||
|
||||
chipreg_t regs[XCPTCONTEXT_REGS];
|
||||
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* The following retains that state during signal execution
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -258,6 +259,7 @@ struct xcptcontext
|
||||
|
||||
chipreg_t saved_pc; /* Saved return address */
|
||||
chipreg_t saved_i; /* Saved interrupt state */
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -175,6 +175,7 @@ struct xcptcontext
|
||||
|
||||
chipreg_t regs[XCPTCONTEXT_REGS];
|
||||
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* The following retains that state during signal execution
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -185,6 +186,7 @@ struct xcptcontext
|
||||
|
||||
uint16_t saved_pc; /* Saved return address */
|
||||
uint16_t saved_i; /* Saved interrupt state */
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -306,6 +306,7 @@ struct xcptcontext
|
||||
|
||||
chipreg_t regs[XCPTCONTEXT_REGS];
|
||||
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* The following retains that state during signal execution
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -316,6 +317,7 @@ struct xcptcontext
|
||||
|
||||
uint16_t saved_pc; /* Saved return address */
|
||||
uint16_t saved_irqctl; /* Saved interrupt state */
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@ struct xcptcontext
|
||||
|
||||
chipreg_t regs[XCPTCONTEXT_REGS];
|
||||
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* The following retains that state during signal execution.
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -100,6 +101,7 @@ struct xcptcontext
|
||||
|
||||
uint16_t saved_pc; /* Saved return address */
|
||||
uint16_t saved_i; /* Saved interrupt state */
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -55,9 +55,12 @@ CHIP_ASRCS += ez80_getsp.asm
|
||||
endif
|
||||
|
||||
CHIP_CSRCS = ez80_clock.c ez80_initialstate.c ez80_irq.c ez80_copystate.c
|
||||
CHIP_CSRCS += ez80_schedulesigaction.c ez80_sigdeliver.c
|
||||
CHIP_CSRCS += ez80_timerisr.c ez80_serial.c
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CHIP_CSRCS += ez80_schedulesigaction.c ez80_sigdeliver.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_STACKDUMP),y)
|
||||
CHIP_CSRCS += ez80_registerdump.c
|
||||
endif
|
||||
|
||||
@@ -45,7 +45,11 @@ endif
|
||||
|
||||
CHIP_CSRCS = z180_copystate.c z180_initialstate.c z180_io.c z180_irq.c
|
||||
CHIP_CSRCS += z180_lowscc.c z180_lowserial.c z180_modifiyreg8.c z180_mmu.c
|
||||
CHIP_CSRCS += z180_registerdump.c z180_schedulesigaction.c z180_sigdeliver.c
|
||||
CHIP_CSRCS += z180_registerdump.c
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CHIP_CSRCS += z180_schedulesigaction.c z180_sigdeliver.c
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_SCHED_TICKLESS),y)
|
||||
CHIP_CSRCS += z180_timerisr.c
|
||||
|
||||
@@ -30,9 +30,12 @@ CMN_CSRCS += z80_stackframe.c z80_usestack.c
|
||||
|
||||
CHIP_SSRCS = z8_vector.S z8_saveusercontext.S z8_restorecontext.S
|
||||
CHIP_CSRCS = z8_initialstate.c z8_irq.c z8_saveirqcontext.c
|
||||
CHIP_CSRCS += z8_schedulesigaction.c z8_sigdeliver.c
|
||||
CHIP_CSRCS += z8_serial.c z8_i2c.c z8_registerdump.c
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CMN_CSRCS += z8_schedulesigaction.c z8_sigdeliver.c
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_SCHED_TICKLESS),y)
|
||||
CHIP_CSRCS += z8_timerisr.c
|
||||
endif
|
||||
|
||||
@@ -37,5 +37,8 @@ CMN_CSRCS += z80_usestack.c
|
||||
CHIP_ASRCS = z80_saveusercontext.asm z80_restoreusercontext.asm
|
||||
|
||||
CHIP_CSRCS = z80_initialstate.c z80_io.c z80_irq.c z80_copystate.c
|
||||
CHIP_CSRCS += z80_schedulesigaction.c z80_sigdeliver.c
|
||||
CHIP_CSRCS += z80_registerdump.c
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CHIP_CSRCS += z80_schedulesigaction.c z80_sigdeliver.c
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user