mirror of git://sourceware.org/git/glibc.git
Don't set errno in the _LIBC_REENTRANT case, use register names consistently.
This commit is contained in:
parent
ca0eea4226
commit
4f211d1748
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue