about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/mips64/n64
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2005-09-16 12:20:49 +0000
committerAndreas Jaeger <aj@suse.de>2005-09-16 12:20:49 +0000
commit2c923c369e087169ae1a769a8934807df41b273f (patch)
tree16f49140c1e4569ee72e42d117f14cd6d9c9ddf0 /sysdeps/unix/sysv/linux/mips/mips64/n64
parent141f0a9cbefa2ed88486f836bd4dad1b14f277e6 (diff)
downloadglibc-2c923c369e087169ae1a769a8934807df41b273f.tar.gz
glibc-2c923c369e087169ae1a769a8934807df41b273f.tar.xz
glibc-2c923c369e087169ae1a769a8934807df41b273f.zip
[BZ #933]
2005-09-16  Maciej W. Rozycki  <macro@linux-mips.org>
	[BZ #933]
	* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
	the syscall immediately before invocation.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.

	* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
	macros to handle GP.
	* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
	Likewise.  Update inaccurate comments.
2005-09-16  Maciej W. Rozycki  <macro@linux-mips.org>

	[BZ #933]
	* sysdeps/unix/sysv/linux/mips/brk.c (__brk): Load the number of
	the syscall immediately before invocation.
	* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Likewise.
	* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall): Likewise.

	* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl): Use
	macros to handle GP.
	* sysdeps/unix/sysv/linux/mips/mips64/syscall.S (syscall):
	Likewise.  Update inaccurate comments.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/mips64/n64')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S b/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
index 7b14089bcb..e4b4f00a8c 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
@@ -1,4 +1,4 @@
-/* Copyright 2003 Free Software Foundation, Inc.
+/* Copyright 2003, 2005 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
@@ -25,16 +25,16 @@
 
 	.text
 ENTRY (__ioctl)
+	sll a1, a1, 0
 	li v0, __NR_ioctl
-	sll a1,a1,0
 	syscall			/* Do the system call.  */
 	bne a3, zero, L(error)
 	ret
 
 L(error):
-	.cpsetup t9, a0, __ioctl
-	PTR_LA t9,__syscall_error
-	.cprestore
+	SETUP_GP64 (a0, __ioctl)
+	PTR_LA t9, __syscall_error
+	RESTORE_GP64
 	jr t9
 
 PSEUDO_END (__ioctl)