[PATCH] minor sysdeps/mips/sysdep.S cleanup
Guido Guenther
agx@sigxcpu.org
Wed Jan 22 21:28:00 GMT 2003
Hi,
the __syscall_error functions in sysdeps/unix/mips/sysdep.S use register
numbers in the first half of the function and register names in the
second. Since I don't see a compelling reason to do this I attached
a patch that converts the whole file to use register names.
Regards,
-- Guido
-------------- next part --------------
2003-01-22 Guido Guenther <agx@sigxcpu.org>
* sysdeps/unix/mips/sysdeps.S use register names consistently
Index: sysdeps/unix/mips/sysdep.S
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/mips/sysdep.S,v
retrieving revision 1.12
diff -u -u -r1.12 sysdep.S
--- sysdeps/unix/mips/sysdep.S 6 Jul 2001 04:56:11 -0000 1.12
+++ sysdeps/unix/mips/sysdep.S 15 Jan 2003 16:03:39 -0000
@@ -27,11 +27,11 @@
#ifdef __PIC__
.set noreorder
.set noat
- move $1, $31
- bltzal $0, 0f
+ move AT, ra
+ bltzal zero, 0f
nop
-0: .cpload $31
- move $31, $1
+0: .cpload ra
+ move ra, AT
.set at
.set reorder
#endif
@@ -39,6 +39,7 @@
#ifdef __PIC__
.cprestore 16
#endif
+ /* save syscall result and return address */
sw v0, 20(sp)
sw ra, 24(sp)
@@ -75,11 +76,11 @@
#ifdef __PIC__
.set noreorder
.set noat
- move $1, $31
- bltzal $0, 0f
+ move AT, ra
+ bltzal zero, 0f
nop
-0: .cpload $31
- move $31, $1
+0: .cpload ra
+ move ra, AT
.set at
.set reorder
#endif
More information about the Libc-alpha
mailing list