diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-25 00:45:30 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-12-25 00:45:30 +0000 |
commit | 483f7ffbfb50f6eb687b8859d8ad86a019169506 (patch) | |
tree | 01df66cc5c6f9e15a381388b249ddd837f9b7f70 /lib/librthread | |
parent | 9b5e125a4cef5dc6ac12fd371843ff0817a1e4d6 (diff) |
put the error handling jump code back in from brad/marco
call right sycall after threadfn return
Diffstat (limited to 'lib/librthread')
-rw-r--r-- | lib/librthread/arch/i386/rfork_thread.S | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/librthread/arch/i386/rfork_thread.S b/lib/librthread/arch/i386/rfork_thread.S index 39e35ac67c2..4ab79f20938 100644 --- a/lib/librthread/arch/i386/rfork_thread.S +++ b/lib/librthread/arch/i386/rfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: rfork_thread.S,v 1.1 2005/12/03 18:16:19 tedu Exp $ */ +/* $OpenBSD: rfork_thread.S,v 1.2 2005/12/25 00:45:29 tedu Exp $ */ /*- * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org> * All rights reserved. @@ -71,9 +71,7 @@ ENTRY(rfork_thread) pushl $0 movl $SYS_rfork, %eax int $0x80 -#if 0 jb 2f -#endif /* * Check to see if we are in the parent or child @@ -103,11 +101,7 @@ ENTRY(rfork_thread) */ pushl %eax pushl $0 -#ifdef SYS_exit - movl $SYS_exit, %eax -#else - movl $SYS_sys_exit, %eax -#endif + movl $SYS_threxit, %eax int $0x80 /* @@ -118,9 +112,4 @@ ENTRY(rfork_thread) popl %esi movl %ebp, %esp popl %ebp -#if 0 - /* FreeBSD code. how to translate? */ - PIC_PROLOGUE - jmp PIC_PLT(HIDENAME(cerror)) -#endif jmp CERROR |