Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/i386/sys Fix call to _exit.



details:   https://anonhg.NetBSD.org/src/rev/529c1e468fe2
branches:  trunk
changeset: 512851:529c1e468fe2
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Jul 18 12:24:53 2001 +0000

description:
Fix call to _exit.

diffstat:

 lib/libc/arch/i386/sys/__clone.S |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r f8d2f37f039a -r 529c1e468fe2 lib/libc/arch/i386/sys/__clone.S
--- a/lib/libc/arch/i386/sys/__clone.S  Wed Jul 18 12:24:27 2001 +0000
+++ b/lib/libc/arch/i386/sys/__clone.S  Wed Jul 18 12:24:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __clone.S,v 1.2 2001/07/17 23:13:04 thorpej Exp $      */
+/*     $NetBSD: __clone.S,v 1.3 2001/07/18 12:24:53 fvdl Exp $ */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -77,13 +77,16 @@
        jne     2f              /* we're the parent */
        call    *%ebp           /* this is the clone, call the function */
 
-       pushl   %eax            /* clone does _exit(func(arg)); */
 #ifdef PIC
        PIC_PROLOGUE
+       pushl   %eax            /* clone does _exit(func(arg)); */
        call    PIC_PLT(_C_LABEL(_exit))
+       addl    $4,%esp
        PIC_EPILOGUE
 #else
-       call    PIC_PLT(_C_LABEL(_exit))
+       pushl   %eax
+       call    _C_LABEL(_exit)
+       addl    $4,%esp
 #endif
 
 2:



Home | Main Index | Thread Index | Old Index