From 2986b9b87af488f09319d542425d580a9a19e899 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 4 Jan 2001 23:46:35 +0000 Subject: (__socket): Fix error code handling. --- sysdeps/unix/sysv/linux/sh/socket.S | 6 +++--- 1 file 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. */ -- cgit 1.4.1