summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/armv7-m/vfork.S
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-15 15:40:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-15 15:40:18 +0000
commitfa14e61b3b4bca193293aba75f7ee106cbe4dd69 (patch)
treeac5859a191e82fae017790748289f326790342b7 /nuttx/arch/arm/src/armv7-m/vfork.S
parent033512b6c83b46c4c052499faba7cc4b02ff4153 (diff)
downloadpx4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.tar.gz
px4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.tar.bz2
px4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.zip
Implement vfork() for the MIPS32 architecture
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5520 42af7a65-404d-4744-a932-0658087f49c3
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, 3 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/vfork.S b/nuttx/arch/arm/src/armv7-m/vfork.S
index 386fca33c..f36ff23aa 100644
--- a/nuttx/arch/arm/src/armv7-m/vfork.S
+++ b/nuttx/arch/arm/src/armv7-m/vfork.S
@@ -108,6 +108,7 @@ vfork:
mov r0, sp /* Save the value of the stack on entry */
sub sp, sp, #VFORK_SIZEOF /* Allocate the structure on the stack */
+ /* CPU registers */
/* Save the volatile registers */
str r4, [sp, #VFORK_R4_OFFSET]
@@ -124,6 +125,8 @@ vfork:
str r0, [sp, #VFORK_SP_OFFSET]
str lr, [sp, #VFORK_LR_OFFSET]
+ /* Floating point registers (not yet) */
+
/* Then, call up_vfork(), passing it a pointer to the stack structure */
mov r0, sp