PERFORCE change 29901 for review

Peter Wemm peter at FreeBSD.org
Sun Apr 27 15:52:38 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29901

Change 29901 by peter at peter_daintree on 2003/04/27 15:52:11

	vfork(2) definately cannot work with syscall.  Hardcode int $0x80
	for now.  I think I'll tweak the syscall ABI so that it preserves
	a couple of "scratch" registers (%rdi,%rsi) for use by the wrappers.

Affected files ...

.. //depot/projects/hammer/lib/libc/x86_64/sys/Ovfork.S#4 edit

Differences ...

==== //depot/projects/hammer/lib/libc/x86_64/sys/Ovfork.S#4 (text+ko) ====

@@ -49,7 +49,8 @@
 ENTRY(__sys_vfork)
 	popq	%rcx		/* my rta into ecx */
 	mov	$SYS_vfork,%rax
-	KERNCALL
+	/* cant use KERNCALL yet, no scratch regs, cant use stack */
+	int	$0x80
 	jb	1f
 	jmp	*%rcx
 1:


More information about the p4-projects mailing list