ack/mach/vax4/libbsd4_2/vfork.s
1990-01-11 16:00:19 +00:00

18 lines
228 B
ArmAsm

#include "syscall.h"
DEFINE(_vfork)
movl 16(fp),r2
movab Inewret,16(fp)
ret ! cleans stack
Inewret:
chmk $SYS_vfork
bcs Ierr
tstl r1
beql Iparent
clrl r0
Iparent:
jmp (r2)
Ierr:
movl r0,_errno
mnegl $1,r0
jmp (r2)