mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
arch/or1k: 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
8df791b057
commit
ec2684c885
@@ -171,6 +171,7 @@ struct xcptcontext
|
|||||||
|
|
||||||
uint32_t regs[XCPTCONTEXT_REGS];
|
uint32_t regs[XCPTCONTEXT_REGS];
|
||||||
|
|
||||||
|
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||||
/* These are saved copies of LR and CPSR used during
|
/* These are saved copies of LR and CPSR used during
|
||||||
* signal processing.
|
* signal processing.
|
||||||
*
|
*
|
||||||
@@ -182,6 +183,7 @@ struct xcptcontext
|
|||||||
|
|
||||||
uint32_t saved_pc;
|
uint32_t saved_pc;
|
||||||
uint32_t saved_flags;
|
uint32_t saved_flags;
|
||||||
|
#endif /* CONFIG_ENABLE_ALL_SIGNALS */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ CMN_CSRCS = or1k_initialize.c \
|
|||||||
or1k_stackframe.c \
|
or1k_stackframe.c \
|
||||||
or1k_initialstate.c \
|
or1k_initialstate.c \
|
||||||
or1k_switchcontext.c \
|
or1k_switchcontext.c \
|
||||||
or1k_schedulesigaction.c \
|
|
||||||
or1k_copyfullstate.c \
|
or1k_copyfullstate.c \
|
||||||
or1k_registerdump.c \
|
or1k_registerdump.c \
|
||||||
or1k_getintstack.c \
|
or1k_getintstack.c \
|
||||||
@@ -45,6 +44,10 @@ CMN_CSRCS = or1k_initialize.c \
|
|||||||
or1k_cpuinfo.c \
|
or1k_cpuinfo.c \
|
||||||
mor1kx_start.c
|
mor1kx_start.c
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_ENABLE_ALL_SIGNALS),y)
|
||||||
|
CMN_CSRCS += or1k_schedulesigaction.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
||||||
CMN_CSRCS += or1k_task_start.c or1k_pthread_start.c
|
CMN_CSRCS += or1k_task_start.c or1k_pthread_start.c
|
||||||
#CMN_CSRCS += or1k_signal_dispatch.c
|
#CMN_CSRCS += or1k_signal_dispatch.c
|
||||||
|
|||||||
Reference in New Issue
Block a user