ack/mach/sun2/libsys/vfork.s

19 lines
252 B
ArmAsm
Raw Permalink Normal View History

1987-03-03 09:37:26 +00:00
#include "syscall.h"
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _vfork
_vfork:
move.l (sp)+,a0
pea SYS_vfork
trap #0
bcs 1f
tst.l d1
bne 2f
jmp (a0)
1:
move.l d0,_errno
move.l #-1,d0
jmp (a0)
2:
clr.l d0
jmp (a0)