about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sh/pipe.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-05 11:26:28 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-05 11:26:28 +0000
commitbbd1745596d2f0562745dbde8d2a62bc0d1eaaae (patch)
treecffb5e41a80be4b8d55b0e2a21385fd1e5d3cc31 /sysdeps/unix/sysv/linux/sh/pipe.S
parentbdee30cfe40d9c5cfe0b8969877f11857d092359 (diff)
downloadglibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.tar.gz
glibc-bbd1745596d2f0562745dbde8d2a62bc0d1eaaae.tar.xz
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/pipe.S')
-rw-r--r--sysdeps/unix/sysv/linux/sh/pipe.S35
1 files changed, 7 insertions, 28 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/pipe.S b/sysdeps/unix/sysv/linux/sh/pipe.S
index 80e7280a5c..2b5cf77d16 100644
--- a/sysdeps/unix/sysv/linux/sh/pipe.S
+++ b/sysdeps/unix/sysv/linux/sh/pipe.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002, 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
@@ -26,37 +26,16 @@ ENTRY (__libc_pipe)
 	shad	r2, r3
 	not	r3, r3			// r1=0 means r0 = -1 to -4095
 	tst	r3, r3			// i.e. error in linux
-	bf	1f
-	mov.l	.L2, r1
-#ifdef SHARED
-	mov	r0, r4
-	mov.l	r12, @-r15
-	sts.l	pr, @-r15
-        mov.l	0f, r12
-	mova	0f, r0
-	add	r0, r12
-	mova	.L2, r0
-	add	r0, r1
-	jsr	@r1
-	 nop
-	lds.l	@r15+, pr
-	rts
-	 mov.l	@r15+, r12
-	.align 2
-0:
-	.long	_GLOBAL_OFFSET_TABLE_
-#else
-	jmp	@r1
-	 mov	r0, r4
-#endif
-1:
+	bt	1f
 	mov.l	r0, @r4
 	mov.l	r1, @(4, r4)
 	rts
 	 mov	#0, r0
-	.align	2
-.L2:
-	.long	PLTJMP(C_SYMBOL_NAME(__syscall_error))
+1:
+	SYSCALL_ERROR_HANDLER
+.Lpseudo_end:
+	rts
+	 nop
 PSEUDO_END (__libc_pipe)
 
 weak_alias (__libc_pipe, __pipe)