]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/hppa/clone.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / hppa / clone.S
index d36b3021998e74056f75ac21264d54f52c2c1a8a..79fa4f6147c599882b79a57b9ef4806731ed2e1a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2017 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Huggins-Daines <dhd@debian.org>, 2000.
    Based on the Alpha version by Richard Henderson <rth@tamu.edu>, 1996.
 ENTRY(__clone)
        /* Prologue */
        stwm    %r4, 64(%sp)
+       .cfi_def_cfa_offset -64
+       .cfi_offset 4, 0
        stw     %sp, -4(%sp)
 #ifdef PIC
        stw     %r19, -32(%sp)
+       .cfi_offset 19, 32
 #endif
 
        /* Sanity check arguments.  */
@@ -147,11 +150,11 @@ ENTRY(__clone)
 #ifdef PIC
        copy    %r4, %r19
 #endif
-       /* The call to _exit needs saved r19.  */
-       bl      _exit, %rp
-       copy    %ret0, %arg0
+       copy    %r28, %r26
+       ble     0x100(%sr2, %r0)
+       ldi     __NR_exit, %r20
 
-       /* We should not return from _exit.
+       /* We should not return from exit.
            We do not restore r4, or the stack state.  */
        iitlbp  %r0, (%sr0, %r0)