summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/armv7-m/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/armv7-m/vfork.S')
-rw-r--r--nuttx/arch/arm/src/armv7-m/vfork.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/vfork.S b/nuttx/arch/arm/src/armv7-m/vfork.S
index 0d9e144cd..386fca33c 100644
--- a/nuttx/arch/arm/src/armv7-m/vfork.S
+++ b/nuttx/arch/arm/src/armv7-m/vfork.S
@@ -105,7 +105,7 @@
vfork:
/* Create a stack frame */
- mov r0, sp /* Save the value of the stack frame on entry */
+ mov r0, sp /* Save the value of the stack on entry */
sub sp, sp, #VFORK_SIZEOF /* Allocate the structure on the stack */
/* Save the volatile registers */
@@ -131,6 +131,7 @@ vfork:
/* Release the stack data and return the value returned by up_vfork */
+ ldr lr, [sp, #VFORK_LR_OFFSET]
add sp, sp, #VFORK_SIZEOF
bx lr
.size vfork, .-vfork