is zero in the child
ok deraadt@ miod@
-/* $OpenBSD: tfork_thread.S,v 1.3 2012/08/22 17:19:34 pascal Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.4 2015/04/21 01:24:28 guenther Exp $ */
/*-
* Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
* Copyright (c) 2003 Alan L. Cox <alc@cs.rice.edu>
/*
* Check to see if we are in the parent or child
*/
- cmpl $0, %edx
- jnz 1f
+ cmpl $0, %eax
+ jz 1f
ret
/*
-/* $OpenBSD: tfork_thread.S,v 1.5 2012/12/22 21:07:50 kettenis Exp $ */
+/* $OpenBSD: tfork_thread.S,v 1.6 2015/04/21 01:24:28 guenther Exp $ */
/*-
* Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
* All rights reserved.
/*
* Check to see if we are in the parent or child
*/
- cmpl $0, %edx
- jnz 1f
+ cmpl $0, %eax
+ jz 1f
addl $12, %esp
popl %edi
popl %esi