4 * Created on: Aug 5, 2009
10 #include "aros/armeb/asm.h"
14 .global AROS_CDEFNAME(vfork)
15 .type AROS_CDEFNAME(vfork),%function
18 str
lr, [sp
, #-4]! /* Store link register */
19 sub sp
, sp
, jmpbuf_SIZEOF
/* Create space for env structure */
21 bl setjmp
/* Prepare setjmp */
23 ldr
r0, [sp
, jmpbuf_SIZEOF
] /* restore link register */
24 str
r0, [sp
, retaddr
] /* save lr as first argument of env structure */
26 add r0, sp
, jmpbuf_SIZEOF
+ 4 /* save previous stack pointer into env structure */
29 mov
r0, sp
/* Argument to vfork() */
30 b __vfork
/* never return... */