summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/mips32/up_vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/mips/src/mips32/up_vfork.c')
-rw-r--r--nuttx/arch/mips/src/mips32/up_vfork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/mips/src/mips32/up_vfork.c b/nuttx/arch/mips/src/mips32/up_vfork.c
index 3714cfac7..15fd32812 100644
--- a/nuttx/arch/mips/src/mips32/up_vfork.c
+++ b/nuttx/arch/mips/src/mips32/up_vfork.c
@@ -167,7 +167,8 @@ pid_t up_vfork(const struct vfork_s *context)
/* Allocate the stack for the TCB */
- ret = up_create_stack((FAR struct tcb_s *)child, stacksize);
+ ret = up_create_stack((FAR struct tcb_s *)child, stacksize,
+ parent->flags & TCB_FLAG_TTYPE_MASK);
if (ret != OK)
{
sdbg("up_create_stack failed: %d\n", ret);