From: Ulrich Drepper Date: Mon, 27 Jan 2003 19:01:25 +0000 (+0000) Subject: Don't set errno in the _LIBC_REENTRANT case, use register names consistently. X-Git-Tag: glibc-2.16-ports-before-merge~1446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f211d17483a13ff9c3f658c8821f0190765b258;p=thirdparty%2Fglibc.git Don't set errno in the _LIBC_REENTRANT case, use register names consistently. --- diff --git a/sysdeps/unix/mips/sysdep.S b/sysdeps/unix/mips/sysdep.S index fa1bfa17222..c710b0c274a 100644 --- a/sysdeps/unix/mips/sysdep.S +++ b/sysdeps/unix/mips/sysdep.S @@ -27,11 +27,11 @@ ENTRY(__syscall_error) #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 @@ -51,9 +51,6 @@ ENTRY(__syscall_error) li v0, EAGAIN skip: #endif - /* Store it in the "real" variable ... */ - sw v0, errno - /* Find our per-thread errno address */ jal __errno_location @@ -75,11 +72,11 @@ ENTRY(__syscall_error) #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