aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8201df04fc..2d0522d6b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-03-20 Alexandre Oliva <aoliva@redhat.com>
+ * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
+ with a single instruction.
+
* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
properly for n64.
(elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S b/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
index ed3b4078e4..7b14089bcb 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S
@@ -26,8 +26,7 @@
.text
ENTRY (__ioctl)
li v0, __NR_ioctl
- dsll a1,a1,32
- dsra a1,a1,32
+ sll a1,a1,0
syscall /* Do the system call. */
bne a3, zero, L(error)
ret