mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
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:
@@ -242,12 +242,13 @@ pid_t up_vfork(const struct vfork_s *context)
|
||||
|
||||
/* REVISIT: This logic is *not* common. */
|
||||
|
||||
#if (defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8)) && \
|
||||
defined(CONFIG_BUILD_KERNEL)
|
||||
#if defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8)
|
||||
# ifdef CONFIG_BUILD_KERNEL
|
||||
|
||||
child->cmn.xcp.syscall[index].cpsr =
|
||||
parent->xcp.syscall[index].cpsr;
|
||||
|
||||
# endif
|
||||
#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \
|
||||
defined(CONFIG_ARCH_CORTEXM0) || defined(CONFIG_ARCH_CORTEXM7)
|
||||
|
||||
|
||||
+1
-1
Submodule configs updated: c101e964cc...92d94928d0
Reference in New Issue
Block a user