mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 05:39:01 +00:00
Fixed ARM vfork; re-enabled vfork OS test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5490 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7408f8da44
commit
4ebf07ab45
3 changed files with 5 additions and 3 deletions
|
|
@ -102,7 +102,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 */
|
||||
|
|
@ -128,6 +128,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
|
||||
mov pc, lr
|
||||
.size vfork, .-vfork
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
pid_t up_vfork(struct vfork_s *context)
|
||||
pid_t up_vfork(const struct vfork_s *context)
|
||||
{
|
||||
_TCB *parent = (FAR _TCB *)g_readytorun.head;
|
||||
_TCB *child;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue