OSDN Git Service

sparc: pipe.S
authorAustin Foxley <austinf@cetoncorp.com>
Fri, 1 Oct 2010 23:06:23 +0000 (16:06 -0700)
committerAustin Foxley <austinf@cetoncorp.com>
Fri, 1 Oct 2010 23:06:23 +0000 (16:06 -0700)
return value of pipe on success is supposed to be 0

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libc/sysdeps/linux/sparc/pipe.S

index 76a5b96..94913d4 100644 (file)
@@ -49,7 +49,7 @@ pipe:
     st %o0,[%i0]
     st %o1,[%i0+4]
        ret
-        restore %o0,%g0,%o0
+        restore %g0,%g0,%o0
 
 .Lerror:
        call    HIDDEN_JUMPTARGET(__errno_location)