summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips/clone.S
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-03 22:56:10 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-09-03 22:56:10 +0000
commitce4561b432adf38e2f1e83afaa60a533a869a19a (patch)
tree62548c0ede6d39b31b6a42d975948552fc39f279 /libc/sysdeps/linux/mips/clone.S
parentbc92b8b0af4a59ea83592d2e1d4bf2c21a06d7ec (diff)
downloaduClibc-alpine-ce4561b432adf38e2f1e83afaa60a533a869a19a.tar.bz2
uClibc-alpine-ce4561b432adf38e2f1e83afaa60a533a869a19a.tar.xz
Fix cloberring of errno value.
Diffstat (limited to 'libc/sysdeps/linux/mips/clone.S')
-rw-r--r--libc/sysdeps/linux/mips/clone.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S
index 8486da783..65ac8b16a 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -102,6 +102,9 @@ NESTED(__clone,4*SZREG,sp)
/* Something bad happened -- no child created */
L(error):
+#ifdef __UCLIBC__
+ move a0,v0
+#endif
#ifdef __PIC__
PTR_LA t9,__syscall_error
RESTORE_GP64