Fix a Cortex-A compilation error in the vfork() logic when system calls are enabled in modes other than CONFIG_BUILD_KERNEL.
This commit is contained in:
parent
05575c8e2b
commit
32e41423e4
|
@ -242,12 +242,13 @@ pid_t up_vfork(const struct vfork_s *context)
|
||||||
|
|
||||||
/* REVISIT: This logic is *not* common. */
|
/* REVISIT: This logic is *not* common. */
|
||||||
|
|
||||||
#if (defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8)) && \
|
#if defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8)
|
||||||
defined(CONFIG_BUILD_KERNEL)
|
# ifdef CONFIG_BUILD_KERNEL
|
||||||
|
|
||||||
child->cmn.xcp.syscall[index].cpsr =
|
child->cmn.xcp.syscall[index].cpsr =
|
||||||
parent->xcp.syscall[index].cpsr;
|
parent->xcp.syscall[index].cpsr;
|
||||||
|
|
||||||
|
# endif
|
||||||
#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \
|
#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \
|
||||||
defined(CONFIG_ARCH_CORTEXM0) || defined(CONFIG_ARCH_CORTEXM7)
|
defined(CONFIG_ARCH_CORTEXM0) || defined(CONFIG_ARCH_CORTEXM7)
|
||||||
|
|
||||||
|
|
2
configs
2
configs
|
@ -1 +1 @@
|
||||||
Subproject commit c101e964ccdfbaaae58aa6f156548d0277ad1fce
|
Subproject commit 92d94928d040abacc0ecd05b7a1d81c41cd7f250
|
Loading…
Reference in New Issue