Hi Paul, All
attached a little fix in clone asm code for SH to use a delayed branch instead of a normal branch.
Let me know so I can commit it.

Regards,
Carmelo
A little optimization in clone sanity check: use a delayed branch
instruction (bt/s) so that null pointer check for second input
argument (hold on r5) is done into the delay slot.

Signed-off-by: Carmelo Amoroso <[EMAIL PROTECTED]>

Index: libc/sysdeps/linux/sh/clone.S
===================================================================
--- libc/sysdeps/linux/sh/clone.S       (revision 23105)
+++ libc/sysdeps/linux/sh/clone.S       (working copy)
@@ -44,7 +44,7 @@
 clone:
        /* sanity check arguments.  */
        tst     r4, r4
-       bt      0f
+       bt/s    0f
        tst     r5, r5
        bf/s    1f
         mov    #+__NR_clone, r3
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to