diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-04 23:46:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-04 23:46:35 +0000 |
commit | 2986b9b87af488f09319d542425d580a9a19e899 (patch) | |
tree | 7e44b7da8ec1674276d747b0867c44772b0ebed7 /sysdeps/unix/sysv/linux/sh | |
parent | 7f28638c7df6b6fdeccf38d869e67aa867d42149 (diff) | |
download | glibc-2986b9b87af488f09319d542425d580a9a19e899.tar glibc-2986b9b87af488f09319d542425d580a9a19e899.tar.gz glibc-2986b9b87af488f09319d542425d580a9a19e899.tar.bz2 glibc-2986b9b87af488f09319d542425d580a9a19e899.zip |
(__socket): Fix error code handling.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/socket.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/socket.S b/sysdeps/unix/sysv/linux/sh/socket.S index c9b11b941a..414a11fc1a 100644 --- a/sysdeps/unix/sysv/linux/sh/socket.S +++ b/sysdeps/unix/sysv/linux/sh/socket.S @@ -81,7 +81,7 @@ ENTRY (__socket) mov.l .L2, r1 #ifdef SHARED - mov r0, r2 + mov r0, r4 mov.l r12, @-r15 sts.l pr, @-r15 mov.l 0f, r12 @@ -90,7 +90,7 @@ ENTRY (__socket) mova .L2, r0 add r0, r1 jsr @r1 - mov r2, r0 + nop lds.l @r15+, pr rts mov.l @r15+, r12 @@ -99,7 +99,7 @@ ENTRY (__socket) .long _GLOBAL_OFFSET_TABLE_ #else jmp @r1 - nop + mov r0, r4 #endif 1: /* Successful; return the syscall's value. */ |