diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-01-05 11:26:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-01-05 11:26:28 +0000 |
commit | bbd1745596d2f0562745dbde8d2a62bc0d1eaaae (patch) | |
tree | cffb5e41a80be4b8d55b0e2a21385fd1e5d3cc31 /sysdeps/unix/sysv/linux/sh/clone.S | |
parent | bdee30cfe40d9c5cfe0b8969877f11857d092359 (diff) | |
download | glibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.tar glibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.tar.gz glibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.tar.bz2 glibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.zip |
Update.
2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
SYSCALL_ERROR_HANDLER.
* sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
* sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
Add support for cancellation handling.
* sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
SYSCALL_ERROR_HANDLER.
* sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
* sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
Add support for cancellation handling.
(SYSCALL_ERROR_HANDLER): Define PIC variants.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/clone.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/clone.S | 60 |
1 files changed, 11 insertions, 49 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S index 3a20db0ca7..a6ddcc5336 100644 --- a/sysdeps/unix/sysv/linux/sh/clone.S +++ b/sysdeps/unix/sysv/linux/sh/clone.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,27 +32,9 @@ ENTRY(__clone) bf/s 1f tst r5, r5 bf/s 1f - mov.l .L1, r1 -#ifdef SHARED - mov.l r12, @-r15 - sts.l pr, @-r15 - mov.l .LG, r12 - mova .LG, r0 - add r0, r12 - mova .L1, r0 - add r0, r1 - jsr @r1 - mov #-EINVAL, r4 - lds.l @r15+, pr - rts - mov.l @r15+, r12 -#else - jmp @r1 - mov #-EINVAL, r4 -#endif - .align 2 -.L1: - .long PLTJMP(C_SYMBOL_NAME(__syscall_error)) + mov #-EINVAL,r0 + bra .Lsyscall_error + nop 1: /* insert the args onto the new stack */ mov.l r7, @-r5 @@ -68,36 +50,16 @@ ENTRY(__clone) shad r2, r1 not r1, r1 // r1=0 means r0 = -1 to -4095 tst r1, r1 // i.e. error in linux - bf 2f - mov.l .L2, r1 -#ifdef SHARED - mov r0, r4 - mov.l r12, @-r15 - sts.l pr, @-r15 - mov.l .LG, r12 - mova .LG, r0 - add r0, r12 - mova .L2, r0 - add r0, r1 - jsr @r1 - nop - lds.l @r15+, pr - rts - mov.l @r15+, r12 -#else - jmp @r1 - mov r0, r4 -#endif - .align 2 -.L2: - .long PLTJMP(C_SYMBOL_NAME(__syscall_error)) - -2: + bf .Lclone_end +.Lsyscall_error: + SYSCALL_ERROR_HANDLER +.Lclone_end: tst r0, r0 - bt 3f + bt 2f +.Lpseudo_end: rts nop -3: +2: /* thread starts */ mov.l @r15, r1 jsr @r1 |