mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 23:40:21 +08:00
arch/avr: 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
9670b17ffd
commit
dfd3426aa5
@@ -103,6 +103,7 @@
|
||||
#ifndef __ASSEMBLY__
|
||||
struct xcptcontext
|
||||
{
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* These are saved copies of PC and SR used during signal processing.
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -120,6 +121,7 @@ struct xcptcontext
|
||||
uint8_t saved_rampz;
|
||||
#endif
|
||||
uint8_t saved_sreg;
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
|
||||
/* Register save area */
|
||||
|
||||
|
||||
@@ -95,6 +95,7 @@
|
||||
#ifndef __ASSEMBLY__
|
||||
struct xcptcontext
|
||||
{
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
/* These are saved copies of PC and SR used during signal processing.
|
||||
*
|
||||
* REVISIT: Because there is only one copy of these save areas,
|
||||
@@ -105,6 +106,7 @@ struct xcptcontext
|
||||
|
||||
uint32_t saved_pc;
|
||||
uint32_t saved_sr;
|
||||
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||
|
||||
/* Register save area */
|
||||
|
||||
|
||||
@@ -30,9 +30,13 @@ CMN_ASRCS = avr_exceptions.S avr_fullcontextrestore.S avr_doswitch.S avr_saveus
|
||||
CMN_CSRCS = avr_allocateheap.c avr_copystate.c avr_createstack.c avr_exit.c
|
||||
CMN_CSRCS += avr_initialize.c avr_initialstate.c avr_idle.c
|
||||
CMN_CSRCS += avr_modifyreg8.c avr_modifyreg16.c avr_modifyreg32.c avr_releasestack.c
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c avr_stackframe.c avr_switchcontext.c
|
||||
CMN_CSRCS += avr_stackframe.c avr_switchcontext.c
|
||||
CMN_CSRCS += avr_usestack.c avr_doirq.c avr_nputs.c avr_registerdump.c avr_getintstack.c
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c
|
||||
endif
|
||||
|
||||
# Required AT32UC3 files
|
||||
|
||||
CHIP_CSRCS = at32uc3_clkinit.c at32uc3_gpio.c at32uc3_irq.c
|
||||
|
||||
@@ -32,11 +32,15 @@ CMN_CSRCS += avr_doirq.c avr_exit.c avr_idle.c avr_irq.c
|
||||
CMN_CSRCS += avr_initialize.c avr_initialstate.c avr_lowputs.c
|
||||
CMN_CSRCS += avr_modifyreg8.c avr_modifyreg16.c avr_modifyreg32.c
|
||||
CMN_CSRCS += avr_nputs.c avr_releasestack.c avr_registerdump.c
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c avr_getintstack.c
|
||||
CMN_CSRCS += avr_getintstack.c
|
||||
CMN_CSRCS += avr_stackframe.c avr_switchcontext.c avr_usestack.c
|
||||
|
||||
# Configuration-dependent common files
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_AVR_SPI),y)
|
||||
CMN_CSRCS += avr_spi.c
|
||||
endif
|
||||
|
||||
@@ -32,11 +32,15 @@ CMN_CSRCS += avr_doirq.c avr_exit.c avr_idle.c avr_initialize.c
|
||||
CMN_CSRCS += avr_initialstate.c avr_irq.c avr_lowputs.c
|
||||
CMN_CSRCS += avr_modifyreg8.c avr_modifyreg16.c avr_modifyreg32.c
|
||||
CMN_CSRCS += avr_nputs.c avr_releasestack.c avr_registerdump.c
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c avr_getintstack.c
|
||||
CMN_CSRCS += avr_stackframe.c avr_switchcontext.c avr_usestack.c
|
||||
CMN_CSRCS += avr_getintstack.c
|
||||
|
||||
# Configuration-dependent common files
|
||||
|
||||
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||
CMN_CSRCS += avr_schedulesigaction.c avr_sigdeliver.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_AVR_SPI),y)
|
||||
CMN_CSRCS += avr_spi.c
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user